mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-07 22:40:53 +03:00
build.gradle.kts:
- added version info to manifest - added META-INF/LICENSE - Java source/target compatibility now defined in single location - defined source file encoding for java compiler
This commit is contained in:
@@ -49,3 +49,28 @@ extra["bintray.dryRun"] = false
|
|||||||
// if true, uploaded artifacts are visible to all
|
// if true, uploaded artifacts are visible to all
|
||||||
// if false, only visible to owner when logged into bintray
|
// if false, only visible to owner when logged into bintray
|
||||||
extra["bintray.publish"] = true
|
extra["bintray.publish"] = true
|
||||||
|
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
tasks {
|
||||||
|
withType<JavaCompile>().configureEach {
|
||||||
|
sourceCompatibility = "1.8"
|
||||||
|
targetCompatibility = "1.8"
|
||||||
|
|
||||||
|
options.encoding = "ISO-8859-1"
|
||||||
|
}
|
||||||
|
|
||||||
|
withType<Jar>().configureEach {
|
||||||
|
// manifest for all created JARs
|
||||||
|
manifest.attributes(mapOf(
|
||||||
|
"Implementation-Vendor" to "FormDev Software GmbH",
|
||||||
|
"Implementation-Copyright" to "Copyright (C) ${java.time.LocalDate.now().year} FormDev Software GmbH. All rights reserved.",
|
||||||
|
"Implementation-Version" to project.version))
|
||||||
|
|
||||||
|
// add META-INF/LICENSE to all created JARs
|
||||||
|
from("${rootDir}/LICENSE") {
|
||||||
|
into("META-INF")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -33,11 +33,6 @@ if( JavaVersion.current() >= JavaVersion.VERSION_1_9 ) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
assemble {
|
assemble {
|
||||||
dependsOn(
|
dependsOn(
|
||||||
|
|||||||
@@ -34,11 +34,6 @@ dependencies {
|
|||||||
implementation( "com.jgoodies:jgoodies-forms:1.9.0" )
|
implementation( "com.jgoodies:jgoodies-forms:1.9.0" )
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
jar {
|
jar {
|
||||||
dependsOn( ":flatlaf-core:jar" )
|
dependsOn( ":flatlaf-core:jar" )
|
||||||
@@ -52,7 +47,11 @@ tasks {
|
|||||||
|
|
||||||
// include all dependencies in jar
|
// include all dependencies in jar
|
||||||
from( {
|
from( {
|
||||||
configurations.runtimeClasspath.get().filter { it.name.endsWith( "jar" ) }.map { zipTree( it ) }
|
configurations.runtimeClasspath.get()
|
||||||
|
.filter { it.name.endsWith( "jar" ) }
|
||||||
|
.map { zipTree( it ).matching {
|
||||||
|
exclude( "META-INF/LICENSE" )
|
||||||
|
} }
|
||||||
} )
|
} )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,8 +22,3 @@ dependencies {
|
|||||||
implementation( project( ":flatlaf-core" ) )
|
implementation( project( ":flatlaf-core" ) )
|
||||||
implementation( "com.formdev:svgSalamander:1.1.2.1" )
|
implementation( "com.formdev:svgSalamander:1.1.2.1" )
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -26,11 +26,6 @@ dependencies {
|
|||||||
implementation( "com.jidesoft:jide-oss:3.6.18" )
|
implementation( "com.jidesoft:jide-oss:3.6.18" )
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
assemble {
|
assemble {
|
||||||
dependsOn(
|
dependsOn(
|
||||||
|
|||||||
@@ -26,11 +26,6 @@ dependencies {
|
|||||||
implementation( "org.swinglabs.swingx:swingx-all:1.6.5-1" )
|
implementation( "org.swinglabs.swingx:swingx-all:1.6.5-1" )
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
assemble {
|
assemble {
|
||||||
dependsOn(
|
dependsOn(
|
||||||
|
|||||||
@@ -36,8 +36,3 @@ dependencies {
|
|||||||
// implementation( "com.weblookandfeel:weblaf-ui:1.2.12" )
|
// implementation( "com.weblookandfeel:weblaf-ui:1.2.12" )
|
||||||
// implementation( "com.jgoodies:jgoodies-looks:2.7.0" )
|
// implementation( "com.jgoodies:jgoodies-looks:2.7.0" )
|
||||||
}
|
}
|
||||||
|
|
||||||
java {
|
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user