From 0f0f6655367b169f11dba71581af873e5ce50cd1 Mon Sep 17 00:00:00 2001 From: Donny Kurnia Date: Sun, 2 Aug 2026 19:54:56 +0700 Subject: [PATCH 1/2] Add Enable-Native-Access attribute to jar manifest Add Enable-Native-Access: ALL-UNNAMED to the manifest of an executable JAR file. With this added, no need to add `--enable-native-access ALL-UNNAMED` flag when running the jar file --- build.gradle.kts | 1 + 1 file changed, 1 insertion(+) diff --git a/build.gradle.kts b/build.gradle.kts index 39d8cf6a..39fc163c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -222,6 +222,7 @@ tasks { attributes( "Implementation-Title" to project.name, "Implementation-Version" to project.version + "Enable-Native-Access" to "ALL-UNNAMED" ) } } From 0f066ecc663a38560f669465a49e8e86694f50d4 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Sun, 2 Aug 2026 16:24:33 +0300 Subject: [PATCH 2/2] fix compilation --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 39fc163c..6e444375 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -221,7 +221,7 @@ tasks { manifest { attributes( "Implementation-Title" to project.name, - "Implementation-Version" to project.version + "Implementation-Version" to project.version, "Enable-Native-Access" to "ALL-UNNAMED" ) }