Testing: updated lafs.properties

This commit is contained in:
Karl Tauber
2024-02-05 14:20:21 +01:00
parent 6cea24ed9e
commit c6338169f3
3 changed files with 22 additions and 7 deletions

View File

@@ -41,6 +41,8 @@ dependencies {
implementation( libs.jide.oss )
implementation( libs.glazedlists )
implementation( libs.netbeans.api.awt )
components.all<TargetJvmVersion8Rule>()
}
applyLafs()
@@ -58,3 +60,13 @@ fun applyLafs() {
dependencies.implementation( parts[2] )
}
}
// rule that overrides 'org.gradle.jvm.version' with '8'
// (required for Radiance, which requires Java 9, but FlatLaf build uses Java 8)
abstract class TargetJvmVersion8Rule : ComponentMetadataRule {
override fun execute( context: ComponentMetadataContext ) {
context.details.allVariants {
attributes.attribute( TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, 8 )
}
}
}