Register java exit handlers in graalvm native build

This commit is contained in:
AsamK 2023-11-06 20:00:53 +01:00
parent 1e35ac380e
commit 4fbc97c92a

View file

@ -24,6 +24,7 @@ application {
graalvmNative { graalvmNative {
binaries { binaries {
this["main"].run { this["main"].run {
buildArgs.add("--install-exit-handlers")
resources.autodetect() resources.autodetect()
configurationFileDirectories.from(file("graalvm-config-dir")) configurationFileDirectories.from(file("graalvm-config-dir"))
if (System.getenv("GRAALVM_HOME") == null) { if (System.getenv("GRAALVM_HOME") == null) {