Skip to content

Fix single Log4j2Plugins.dat isn't included into fat jar#1039

Merged
Goooler merged 2 commits intoGradleUp:mainfrom
KurdTt:missing-log4j2plugins-file-for-fat-jar
Nov 25, 2024
Merged

Fix single Log4j2Plugins.dat isn't included into fat jar#1039
Goooler merged 2 commits intoGradleUp:mainfrom
KurdTt:missing-log4j2plugins-file-for-fat-jar

Conversation

@KurdTt
Copy link
Copy Markdown
Contributor

@KurdTt KurdTt commented Nov 25, 2024

Probably when an application is single module jar, there's no Log4j2Plugins.dat file in META-INF, that causes a warning No Log4j plugin descriptor was found in the classpath..

I saw that Log4j2PluginCacheFileTransformer.java class was inspired by this repo and there was a fix for a fat jar apps. Already tested locally and now it works.

Refs apache/logging-log4j-transform#42.


  • CHANGELOG's "Unreleased" section has been updated, if applicable.

@Goooler Goooler changed the title Single Log4j2Plugins.dat isn't included into fat jar Fix single Log4j2Plugins.dat isn't included into fat jar Nov 25, 2024
@Goooler
Copy link
Copy Markdown
Member

Goooler commented Nov 25, 2024

Thanks for your contribution!

@Goooler Goooler enabled auto-merge (squash) November 25, 2024 12:34
@Goooler Goooler merged commit 0bb2bb0 into GradleUp:main Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants