Let the proguard task run on java 9+
This commit is contained in:
parent
6f43f2de94
commit
b6c0988a24
|
@ -51,14 +51,8 @@ subprojects {
|
||||||
|
|
||||||
// The following lines are needed at least for the current version of proguard
|
// The following lines are needed at least for the current version of proguard
|
||||||
dontwarn("java.**")
|
dontwarn("java.**")
|
||||||
onlyIf {
|
val homeDir = System.getProperty("java.home") as String
|
||||||
JavaVersion.current().isJava8.also {
|
libraryjars("$homeDir/lib/rt.jar")
|
||||||
if (!it) {
|
|
||||||
println("The shrinkJar task is disabled because Java 9 or higher does not work with our current proguard configuration.")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
libraryjars("${System.getProperty("java.home")}/lib/rt.jar")
|
|
||||||
// Note: dontpreverify() should NOT be used, it will cause errors at runtime
|
// Note: dontpreverify() should NOT be used, it will cause errors at runtime
|
||||||
useuniqueclassmembernames()
|
useuniqueclassmembernames()
|
||||||
optimizations("method/inlining/*, code/allocation/variable, class/merging/vertical, class/merging/horizontal, code/removal/advanced, code/simplification/branch, code/merging")
|
optimizations("method/inlining/*, code/allocation/variable, class/merging/vertical, class/merging/horizontal, code/removal/advanced, code/simplification/branch, code/merging")
|
||||||
|
|
Loading…
Reference in New Issue