X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/a3f7de89f103fd1abdc8684672f9b2e6af4e6326..cef83d962cf5415e01fd65d4e602aaa42850d517:/build.gradle.kts diff --git a/build.gradle.kts b/build.gradle.kts index e2e0b51d..f7a3737b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,14 +3,18 @@ plugins { application eclipse `check-lib-versions` - id("org.graalvm.buildtools.native") version "0.9.23" + id("org.graalvm.buildtools.native") version "0.10.1" } -version = "0.11.11" +version = "0.13.3-SNAPSHOT" java { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_21 + + toolchain { + languageVersion.set(JavaLanguageVersion.of(21)) + } } application { @@ -20,12 +24,15 @@ application { graalvmNative { binaries { this["main"].run { + buildArgs.add("--install-exit-handlers") + buildArgs.add("-Dfile.encoding=UTF-8") + buildArgs.add("-J-Dfile.encoding=UTF-8") resources.autodetect() configurationFileDirectories.from(file("graalvm-config-dir")) if (System.getenv("GRAALVM_HOME") == null) { toolchainDetection.set(true) javaLauncher.set(javaToolchains.launcherFor { - languageVersion.set(JavaLanguageVersion.of(17)) + languageVersion.set(JavaLanguageVersion.of(21)) }) } else { toolchainDetection.set(false)