Gradle:
Some checks failed
CI / build (push) Has been cancelled
CI / release (push) Has been cancelled
Error Prone / error-prone (push) Has been cancelled

- default is now Java 8 toolchain (to fix Eclipse project import)
- `src/main/module-info` and `src/main/java9` are compiled with Java 11 toolchain (if global toolchain is Java 8)
- `src/main/module-info` and `src/main/java9` are no longer imported into Eclipse projects
- task `errorprone` now uses at least Java 11 toolchain
This commit is contained in:
Karl Tauber
2025-10-30 18:56:11 +01:00
parent c583a21bf7
commit df8212b49e
8 changed files with 71 additions and 32 deletions

View File

@@ -43,15 +43,13 @@ tasks {
dependsOn( ":flatlaf-intellij-themes:jar" )
// dependsOn( ":flatlaf-natives-jna:jar" )
manifest {
attributes( "Main-Class" to "com.formdev.flatlaf.demo.FlatLafDemo" )
if( java.toolchain.languageVersion.get().asInt() >= 9 )
attributes( "Multi-Release" to "true" )
manifest.attributes(
"Main-Class" to "com.formdev.flatlaf.demo.FlatLafDemo",
"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" )
}
"Enable-Native-Access" to "ALL-UNNAMED",
)
exclude( "module-info.class" )
exclude( "META-INF/versions/*/module-info.class" )