Make gradle integration proguard test JDK 11 compatible
This commit is contained in:
committed by
Space Team
parent
0299d2c9e2
commit
a7396d8c10
+7
-1
@@ -24,7 +24,13 @@ configurations {
|
||||
task obfuscate(type: proguard.gradle.ProGuardTask, dependsOn: jar) {
|
||||
injars "${jar.archivePath}"
|
||||
outjars "$buildDir/proguard/out.jar"
|
||||
libraryjars "$System.env.JAVA_HOME/jre/lib/rt.jar"
|
||||
|
||||
if (JavaVersion.current().isJava9Compatible()) {
|
||||
libraryjars "${System.getProperty('java.home')}/jmods"
|
||||
} else {
|
||||
libraryjars "${System.getProperty('java.home')}/lib/rt.jar"
|
||||
}
|
||||
|
||||
libraryjars configurations.named("resolvableImplementation")
|
||||
|
||||
dontobfuscate
|
||||
|
||||
Reference in New Issue
Block a user