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
This commit is contained in:
Karl Tauber
2019-11-28 19:04:42 +01:00
parent f3f8c81518
commit d5c9bcddc8
2 changed files with 5 additions and 8 deletions

View File

@@ -11,6 +11,8 @@ FlatLaf Change Log
- Fixed selection background of checkbox in table cell. - Fixed selection background of checkbox in table cell.
- Fixed color of links in HTML text. - Fixed color of links in HTML text.
- Fixed jittery submenu rendering on Mac. (issue #10) - 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. - Button: Make button square if button text is "..." or a single character.
- ComboBox: Fixed issues with NetBeans `org.openide.awt.ColorComboBox` - ComboBox: Fixed issues with NetBeans `org.openide.awt.ColorComboBox`
component. component.

View File

@@ -35,8 +35,8 @@ if( JavaVersion.current() >= JavaVersion.VERSION_1_9 ) {
} }
java { java {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8
} }
tasks { tasks {
@@ -58,12 +58,7 @@ tasks {
archiveBaseName.set( "flatlaf" ) archiveBaseName.set( "flatlaf" )
if( JavaVersion.current() >= JavaVersion.VERSION_1_9 ) { if( JavaVersion.current() >= JavaVersion.VERSION_1_9 ) {
manifest.attributes( from( sourceSets["module-info"].output ) {
"Multi-Release" to "true"
)
into( "META-INF/versions/9" ) {
from( sourceSets["module-info"].output )
include( "module-info.class" ) include( "module-info.class" )
} }
} }