mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-02-22 14:14:27 +01:00
Disable graalvm toolchain detection if GRAALVM_HOME is set
This commit is contained in:
@@ -22,6 +22,13 @@ graalvmNative {
|
||||
this["main"].run {
|
||||
resources.autodetect()
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user