mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 14:00:55 +03:00
Gradle: use simpler Kotlin DSL property assignment
https://blog.gradle.org/simpler-kotlin-dsl-property-assignment
This commit is contained in:
@@ -27,7 +27,7 @@ library {
|
||||
}
|
||||
with( linkTask.get() ) {
|
||||
if( name.contains( "Release" ) )
|
||||
debuggable.set( false )
|
||||
debuggable = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,34 +44,34 @@ publishing {
|
||||
|
||||
pom {
|
||||
afterEvaluate {
|
||||
this@pom.name.set( extension.name )
|
||||
this@pom.description.set( extension.description )
|
||||
this@pom.name = extension.name
|
||||
this@pom.description = extension.description
|
||||
}
|
||||
url.set( "https://github.com/JFormDesigner/FlatLaf" )
|
||||
url = "https://github.com/JFormDesigner/FlatLaf"
|
||||
|
||||
licenses {
|
||||
license {
|
||||
name.set( "The Apache License, Version 2.0" )
|
||||
url.set( "https://www.apache.org/licenses/LICENSE-2.0.txt" )
|
||||
name = "The Apache License, Version 2.0"
|
||||
url = "https://www.apache.org/licenses/LICENSE-2.0.txt"
|
||||
}
|
||||
}
|
||||
|
||||
developers {
|
||||
developer {
|
||||
name.set( "Karl Tauber" )
|
||||
organization.set( "FormDev Software GmbH" )
|
||||
organizationUrl.set( "https://www.formdev.com/" )
|
||||
name = "Karl Tauber"
|
||||
organization = "FormDev Software GmbH"
|
||||
organizationUrl = "https://www.formdev.com/"
|
||||
}
|
||||
}
|
||||
|
||||
scm {
|
||||
connection.set( "scm:git:git://github.com/JFormDesigner/FlatLaf.git" )
|
||||
url.set( "https://github.com/JFormDesigner/FlatLaf" )
|
||||
connection = "scm:git:git://github.com/JFormDesigner/FlatLaf.git"
|
||||
url = "https://github.com/JFormDesigner/FlatLaf"
|
||||
}
|
||||
|
||||
issueManagement {
|
||||
system.set( "GitHub" )
|
||||
url.set( "https://github.com/JFormDesigner/FlatLaf/issues" )
|
||||
system = "GitHub"
|
||||
url = "https://github.com/JFormDesigner/FlatLaf/issues"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,6 @@ plugins {
|
||||
val toolchainJavaVersion = System.getProperty( "toolchain" )
|
||||
if( !toolchainJavaVersion.isNullOrEmpty() ) {
|
||||
java.toolchain {
|
||||
languageVersion.set( JavaLanguageVersion.of( toolchainJavaVersion ) )
|
||||
languageVersion = JavaLanguageVersion.of( toolchainJavaVersion )
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,11 +42,11 @@ java {
|
||||
tasks {
|
||||
compileJava {
|
||||
// generate JNI headers
|
||||
options.headerOutputDirectory.set( layout.buildDirectory.dir( "generated/jni-headers" ) )
|
||||
options.headerOutputDirectory = layout.buildDirectory.dir( "generated/jni-headers" )
|
||||
}
|
||||
|
||||
jar {
|
||||
archiveBaseName.set( "flatlaf" )
|
||||
archiveBaseName = "flatlaf"
|
||||
|
||||
doLast {
|
||||
ReorderJarEntries.reorderJarEntries( outputs.files.singleFile );
|
||||
@@ -54,20 +54,20 @@ tasks {
|
||||
}
|
||||
|
||||
named<Jar>( "sourcesJar" ) {
|
||||
archiveBaseName.set( "flatlaf" )
|
||||
archiveBaseName = "flatlaf"
|
||||
}
|
||||
|
||||
named<Jar>( "javadocJar" ) {
|
||||
archiveBaseName.set( "flatlaf" )
|
||||
archiveBaseName = "flatlaf"
|
||||
}
|
||||
|
||||
register<Zip>( "jarNoNatives" ) {
|
||||
group = "build"
|
||||
dependsOn( "jar" )
|
||||
|
||||
archiveBaseName.set( "flatlaf" )
|
||||
archiveClassifier.set( "no-natives" )
|
||||
archiveExtension.set( "jar" )
|
||||
archiveBaseName = "flatlaf"
|
||||
archiveClassifier = "no-natives"
|
||||
archiveExtension = "jar"
|
||||
destinationDirectory = layout.buildDirectory.dir( "libs" )
|
||||
|
||||
from( zipTree( jar.get().archiveFile.get().asFile ) )
|
||||
|
||||
@@ -73,8 +73,8 @@ publishing {
|
||||
pom {
|
||||
licenses {
|
||||
license {
|
||||
name.set( "SIL OPEN FONT LICENSE Version 1.1" )
|
||||
url.set( "https://choosealicense.com/licenses/ofl-1.1/" )
|
||||
name = "SIL OPEN FONT LICENSE Version 1.1"
|
||||
url = "https://choosealicense.com/licenses/ofl-1.1/"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -73,8 +73,8 @@ publishing {
|
||||
pom {
|
||||
licenses {
|
||||
license {
|
||||
name.set( "SIL OPEN FONT LICENSE Version 1.1" )
|
||||
url.set( "https://choosealicense.com/licenses/ofl-1.1/" )
|
||||
name = "SIL OPEN FONT LICENSE Version 1.1"
|
||||
url = "https://choosealicense.com/licenses/ofl-1.1/"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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" )
|
||||
|
||||
@@ -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" )
|
||||
|
||||
@@ -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" )
|
||||
|
||||
Reference in New Issue
Block a user