diff --git a/lsp/build.gradle.kts b/lsp/build.gradle.kts index a472707ef4..dc2171da6a 100644 --- a/lsp/build.gradle.kts +++ b/lsp/build.gradle.kts @@ -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 } \ No newline at end of file