Skip to content

How to properly shadow Log4j Core in Gradle? #2416

Answered by ppkarwasz
nikita51bot asked this question in Q&A
Discussion options

You must be logged in to vote

@nikita51bot,

The Log4j2PluginsCacheFileTransformer seems to be affected by two bugs:

  • it does not transform Log4j2Plugins.dat files in your own project, but only those found in JAR files. You can work around this by creating a Gradle sub-project for the appender,
  • it deletes all Log4j2Plugins.dat files if there is only one such file (this is similar to apache/logging-log4j-transform#87). This should not be a problem in your case.

Edit: I added a comment about these problems to GradleUp/shadow#427

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@nikita51bot
Comment options

@ppkarwasz
Comment options

Comment options

You must be logged in to vote
5 replies
@nikita51bot
Comment options

@ppkarwasz
Comment options

Answer selected by nikita51bot
@nikita51bot
Comment options

@ppkarwasz
Comment options

@nikita51bot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants