EpcQrCode/EpcQrCodeJavaFxApp/build.gradle

49 lines
1.3 KiB
Groovy
Raw Normal View History

apply plugin: 'kotlin'
apply plugin: 'application'
group = "net.codinux.banking.epcqrcode.javafx"
mainClassName = "net.codinux.banking.epcqrcode.EpcQrCodeJavaFxAppKt"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
}
compileTestKotlin {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
api project(":EpcQrCode")
implementation "net.dankito.utils:java-fx-utils:1.0.8"
}
jar {
zip64 = true
// If one of the source JARs is signed, merging it into one fat jar destroys the signature -> remove signatures
// (but may runs into problems with jars that require a valid signature like BouncyCastle, see
// https://stackoverflow.com/questions/51455197/gradle-fatjar-could-not-find-or-load-main-class)
exclude("META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA")
manifest {
attributes 'Main-Class': mainClassName,
'Implementation-Title': "EPC QR Code",
'Implementation-Version': "1.0.0-SNAPSHOT"
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
}