Gradle: use simpler Kotlin DSL property assignment

https://blog.gradle.org/simpler-kotlin-dsl-property-assignment
This commit is contained in:
Karl Tauber
2024-03-23 13:56:47 +01:00
parent a62dd22f83
commit 55ddac2bc7
9 changed files with 30 additions and 30 deletions

View File

@@ -25,7 +25,7 @@ flatlafJniHeaders {
}
library {
targetMachines.set( listOf( machines.linux.x86_64 ) )
targetMachines = listOf( machines.linux.x86_64 )
}
var javaHome = System.getProperty( "java.home" )

View File

@@ -30,10 +30,10 @@ flatlafJniHeaders {
}
library {
targetMachines.set( listOf(
targetMachines = listOf(
machines.macOS.architecture( "arm64" ),
machines.macOS.x86_64
) )
)
}
var javaHome = System.getProperty( "java.home" )

View File

@@ -29,11 +29,11 @@ flatlafJniHeaders {
}
library {
targetMachines.set( listOf(
targetMachines = listOf(
machines.windows.x86,
machines.windows.x86_64,
machines.windows.architecture( "aarch64" )
) )
)
}
var javaHome = System.getProperty( "java.home" )