From: AsamK Date: Thu, 8 May 2025 18:04:49 +0000 (+0200) Subject: Enable native access required by Java 24 X-Git-Tag: v0.13.15~6 X-Git-Url: https://git.nmode.ca/signal-cli/commitdiff_plain/4fd9e55c3c13f5be80d6abdd21f2c608e65903d0 Enable native access required by Java 24 Fixes #1765 --- diff --git a/build.gradle.kts b/build.gradle.kts index 17c632af..bd091026 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -24,6 +24,7 @@ java { application { mainClass.set("org.asamk.signal.Main") + applicationDefaultJvmArgs = listOf("--enable-native-access=ALL-UNNAMED") } graalvmNative { @@ -112,7 +113,8 @@ tasks.withType { attributes( "Implementation-Title" to project.name, "Implementation-Version" to project.version, - "Main-Class" to application.mainClass.get() + "Main-Class" to application.mainClass.get(), + "Enable-Native-Access" to "ALL-UNNAMED", ) } }