Move the homeDir variable in the buildscript

This commit is contained in:
Username404 2021-05-21 12:40:03 +02:00
parent 8293a7c086
commit d028baa5d5
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -96,12 +96,12 @@ subprojects {
dontwarn("kotlinx.serialization.**")
val homeDir = System.getProperty("java.home") as String
doFirst {
libraryjars(configurations.compileClasspath.get().filterNot { file ->
shadowC.contains(file)
})
}
val homeDir = System.getProperty("java.home") as String
if (JavaVersion.current().isJava9Compatible) {
val jmodsLocations = setOf(
"$homeDir/jmods/java.base.jmod",