Use isJava9Compatible as a property in the root-level build.gradle.kts file

This commit is contained in:
Username404-59 2021-04-27 10:15:11 +02:00
parent 3a56cd3be2
commit 3d1f95b275
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ subprojects {
// The following lines are needed at least for the current version of proguard
dontwarn("java.**")
val homeDir = System.getProperty("java.home") as String
if (JavaVersion.current().isJava9Compatible()) {
if (JavaVersion.current().isJava9Compatible) {
libraryjars("$homeDir/jmods/java.base.jmod")
} else libraryjars("$homeDir/lib/rt.jar")
// Note: dontpreverify() should NOT be used, it will cause errors at runtime