diff --git a/build.gradle b/build.gradle index 0db2ad5..23cc6a0 100644 --- a/build.gradle +++ b/build.gradle @@ -42,7 +42,7 @@ allprojects { } } - if (rootProject.hmc_graal_build) { + if (hmc_graal_build.toBoolean()) { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 } else { diff --git a/headlessmc-launcher/build.gradle b/headlessmc-launcher/build.gradle index 739ff0a..680e140 100644 --- a/headlessmc-launcher/build.gradle +++ b/headlessmc-launcher/build.gradle @@ -100,7 +100,7 @@ shadowJar { dependsOn shadowBugWorkaround from shadowBugWorkaround - if (!hmc_graal_build) { + if (!hmc_graal_build.toBoolean()) { // TODO: fix this, since it breaks graalvm, because the resource is not available!!! // ignore the forge-cli jar from processResources as it will get expanded // that the runtime and lwjgl jars get expanded isnt problematic @@ -122,7 +122,7 @@ shadowJar { graalvmNative { agent { defaultMode = "standard" - enabled = rootProject.hmc_graal_build + enabled = hmc_graal_build.toBoolean() } binaries { main { diff --git a/headlessmc-modlauncher/build.gradle b/headlessmc-modlauncher/build.gradle index be4658c..643fb43 100644 --- a/headlessmc-modlauncher/build.gradle +++ b/headlessmc-modlauncher/build.gradle @@ -1,4 +1,4 @@ -if (!rootProject.hmc_graal_build) { +if (!hmc_graal_build.toBoolean()) { sourceSets { java9stub main {