Skip to content

Commit 2c93df9

Browse files
committed
[BUILD][VSC] Exclude ambigious Log4j2Plugins.dat
see https://issues.apache.org/jira/browse/LOG4J2-954
1 parent c4e866b commit 2c93df9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lsp/build.gradle.kts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,17 @@ tasks.jar {
3737
))
3838
}
3939
from(
40-
configurations.compile.get().map { if (it.isDirectory) it else zipTree(it) }
40+
configurations.compile.get().map {if (it.isDirectory) it else zipTree(it) }
4141
)
4242

4343
from(rootProject.file("saros_log4j2.xml"))
4444
from(rootProject.file("log4j2.xml"))
4545
exclude("**/*.jar")
46-
46+
4747
// Exclude files that prevent the jar from starting
48-
exclude("META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA", "META-INF/MANIFEST.MF", "META-INF/log4j-provider.properties")
48+
exclude("META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA")
49+
50+
// Exclude ambigious Log4j2Plugins.dat resulting from bug LOG4J2-954
51+
// see https://issues.apache.org/jira/browse/LOG4J2-954
52+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
4953
}

0 commit comments

Comments
 (0)