Skip to content

Commit

Permalink
[BUILD] Exclude ambigious Log4j2Plugins.dat
Browse files Browse the repository at this point in the history
  • Loading branch information
mschaefer88 committed Sep 24, 2020
1 parent 7579e0f commit f9ccd33
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lsp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,17 @@ tasks.jar {
))
}
from(
configurations.compile.get().map { if (it.isDirectory) it else zipTree(it) }
configurations.compile.get().map {if (it.isDirectory) it else zipTree(it) }
)

from(rootProject.file("saros_log4j2.xml"))
from(rootProject.file("log4j2.xml"))
exclude("**/*.jar")

// Exclude files that prevent the jar from starting
exclude("META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA", "META-INF/MANIFEST.MF", "META-INF/log4j-provider.properties")
exclude("META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA")

// Exclude ambigious Log4j2Plugins.dat resulting from bug LOG4J2-954
// see https://issues.apache.org/jira/browse/LOG4J2-954
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

0 comments on commit f9ccd33

Please sign in to comment.