From d5c9bcddc8f04e862a5cd8a9ee28e7815c342726 Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Thu, 28 Nov 2019 19:04:42 +0100 Subject: [PATCH] fixed "cannot find symbol" error in NetBeans editor, when source/binary format is set to JDK 9 (or later) in NetBeans project (issue #13) flatlaf.jar is no longer a multi-release jar --- CHANGELOG.md | 2 ++ flatlaf-core/build.gradle.kts | 11 +++-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1c2cd3a..7b3780d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ FlatLaf Change Log - Fixed selection background of checkbox in table cell. - Fixed color of links in HTML text. - Fixed jittery submenu rendering on Mac. (issue #10) +- Fixed "cannot find symbol" error in NetBeans editor, when source/binary format + is set to JDK 9 (or later) in NetBeans project. (issue #13) - Button: Make button square if button text is "..." or a single character. - ComboBox: Fixed issues with NetBeans `org.openide.awt.ColorComboBox` component. diff --git a/flatlaf-core/build.gradle.kts b/flatlaf-core/build.gradle.kts index bb8ca379..749c21da 100644 --- a/flatlaf-core/build.gradle.kts +++ b/flatlaf-core/build.gradle.kts @@ -35,8 +35,8 @@ if( JavaVersion.current() >= JavaVersion.VERSION_1_9 ) { } java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 } tasks { @@ -58,12 +58,7 @@ tasks { archiveBaseName.set( "flatlaf" ) if( JavaVersion.current() >= JavaVersion.VERSION_1_9 ) { - manifest.attributes( - "Multi-Release" to "true" - ) - - into( "META-INF/versions/9" ) { - from( sourceSets["module-info"].output ) + from( sourceSets["module-info"].output ) { include( "module-info.class" ) } }