From c8d1f899648ed89a12f4e1e500ecb089963f94ce Mon Sep 17 00:00:00 2001 From: dankl Date: Sun, 12 Jan 2020 00:29:29 +0100 Subject: [PATCH] Configured jar task to create a fat jar --- BankingJavaFxApp/build.gradle | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/BankingJavaFxApp/build.gradle b/BankingJavaFxApp/build.gradle index c3ede5ad..3d1bc538 100644 --- a/BankingJavaFxApp/build.gradle +++ b/BankingJavaFxApp/build.gradle @@ -1,5 +1,5 @@ -apply plugin: 'java-library' apply plugin: 'kotlin' +apply plugin: 'application' sourceCompatibility = "1.8" @@ -13,10 +13,28 @@ compileTestKotlin { } +mainClassName = "net.dankito.banking.ui.javafx.BankingJavaFXApplication" + +def title = 'Banking' + + dependencies { api project(':BankingJavaFxControls') api project(':fints4javaBankingClient') 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) } } } \ No newline at end of file