Fix build on J9+, exclude kotlin_metadata again (used to be removed with annots, but those are necessary)

This commit is contained in:
comp500 2022-06-19 19:39:45 +01:00
parent d2556c4b4a
commit 5e39907fae

View File

@ -54,6 +54,8 @@ licenseReport {
}
tasks.shadowJar {
exclude("**/*.kotlin_metadata")
exclude("**/*.kotlin_builtins")
exclude("META-INF/maven/**/*")
exclude("META-INF/proguard/**/*")
@ -80,7 +82,10 @@ tasks.register<JavaExec>("shrinkJar") {
"--output", r8File.toString(),
"--pg-conf", rules.toString(),
"--lib", System.getProperty("java.home"),
"--lib", System.getProperty("java.home") + "/lib/jce.jar", // javax.crypto, necessary on <1.9 for compiling Okio
*(if (System.getProperty("java.version").startsWith("1.")) {
// javax.crypto, necessary on <1.9 for compiling Okio
arrayOf("--lib", System.getProperty("java.home") + "/lib/jce.jar")
} else { arrayOf() }),
tasks.shadowJar.get().archiveFile.get().asFile.toString()
)
}