]> nmode's Git Repositories - signal-cli/commitdiff
Enable native access required by Java 24
authorAsamK <asamk@gmx.de>
Thu, 8 May 2025 18:04:49 +0000 (20:04 +0200)
committerAsamK <asamk@gmx.de>
Thu, 8 May 2025 18:04:49 +0000 (20:04 +0200)
Fixes #1765

build.gradle.kts

index 17c632af67dcee3003abc0acac4e32dd8303db5a..bd091026e405e78df655083dba987e58630fdd75 100644 (file)
@@ -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<Jar> {
         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",
         )
     }
 }