Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

KurdTt
Copy link
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
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
7 checks passed
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