diff --git a/build.gradle.kts b/build.gradle.kts index a281d11..8144c7d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -51,14 +51,8 @@ subprojects { // The following lines are needed at least for the current version of proguard dontwarn("java.**") - onlyIf { - JavaVersion.current().isJava8.also { - 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") + val homeDir = System.getProperty("java.home") as String + libraryjars("$homeDir/lib/rt.jar") // Note: dontpreverify() should NOT be used, it will cause errors at runtime useuniqueclassmembernames() optimizations("method/inlining/*, code/allocation/variable, class/merging/vertical, class/merging/horizontal, code/removal/advanced, code/simplification/branch, code/merging")