From 3925f198d9b3d7cbc5225180343bf3f2ac45a9ed Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Sat, 22 Mar 2025 18:13:10 +0100 Subject: [PATCH] Demo and Theme Editor: added `Enable-Native-Access: ALL-UNNAMED` to `MANIFEST.MF` to avoid warning when lauchned with Java 24 --- flatlaf-demo/build.gradle.kts | 3 +++ flatlaf-theme-editor/build.gradle.kts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/flatlaf-demo/build.gradle.kts b/flatlaf-demo/build.gradle.kts index 55d7e2ef..beb241db 100644 --- a/flatlaf-demo/build.gradle.kts +++ b/flatlaf-demo/build.gradle.kts @@ -48,6 +48,9 @@ tasks { if( JavaVersion.current() >= JavaVersion.VERSION_1_9 ) attributes( "Multi-Release" to "true" ) + + // allow loading FlatLaf native library in Java 24+ (see https://openjdk.org/jeps/472) + attributes( "Enable-Native-Access" to "ALL-UNNAMED" ) } exclude( "module-info.class" ) diff --git a/flatlaf-theme-editor/build.gradle.kts b/flatlaf-theme-editor/build.gradle.kts index ffbd4982..d334d2e8 100644 --- a/flatlaf-theme-editor/build.gradle.kts +++ b/flatlaf-theme-editor/build.gradle.kts @@ -46,6 +46,9 @@ tasks { if( JavaVersion.current() >= JavaVersion.VERSION_1_9 ) attributes( "Multi-Release" to "true" ) + + // allow loading FlatLaf native library in Java 24+ (see https://openjdk.org/jeps/472) + attributes( "Enable-Native-Access" to "ALL-UNNAMED" ) } exclude( "module-info.class" )