Configured jar task to create a fat jar
This commit is contained in:
parent
7fb9ff1496
commit
c8d1f89964
|
@ -1,5 +1,5 @@
|
||||||
apply plugin: 'java-library'
|
|
||||||
apply plugin: 'kotlin'
|
apply plugin: 'kotlin'
|
||||||
|
apply plugin: 'application'
|
||||||
|
|
||||||
|
|
||||||
sourceCompatibility = "1.8"
|
sourceCompatibility = "1.8"
|
||||||
|
@ -13,6 +13,11 @@ compileTestKotlin {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
mainClassName = "net.dankito.banking.ui.javafx.BankingJavaFXApplication"
|
||||||
|
|
||||||
|
def title = 'Banking'
|
||||||
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api project(':BankingJavaFxControls')
|
api project(':BankingJavaFxControls')
|
||||||
|
|
||||||
|
@ -20,3 +25,16 @@ dependencies {
|
||||||
|
|
||||||
implementation "ch.qos.logback:logback-classic:$logbackVersion"
|
implementation "ch.qos.logback:logback-classic:$logbackVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
jar {
|
||||||
|
manifest {
|
||||||
|
attributes 'Main-Class': mainClassName,
|
||||||
|
'Implementation-Title': title,
|
||||||
|
'Implementation-Version': appVersionName
|
||||||
|
}
|
||||||
|
|
||||||
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||||
|
|
||||||
|
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||||
|
}
|
Loading…
Reference in New Issue