mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Disable graalvm toolchain detection if GRAALVM_HOME is set
This commit is contained in:
parent
2a1be0bd85
commit
ae221e0447
1 changed files with 7 additions and 0 deletions
|
@ -22,6 +22,13 @@ graalvmNative {
|
||||||
this["main"].run {
|
this["main"].run {
|
||||||
resources.autodetect()
|
resources.autodetect()
|
||||||
configurationFileDirectories.from(file("graalvm-config-dir"))
|
configurationFileDirectories.from(file("graalvm-config-dir"))
|
||||||
|
if (System.getenv("GRAALVM_HOME") == null) {
|
||||||
|
javaLauncher.set(javaToolchains.launcherFor {
|
||||||
|
languageVersion.set(JavaLanguageVersion.of(17))
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
toolchainDetection.set(false)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue