From 75e34391f2342b510cb3d2adccc98ca854c8680a Mon Sep 17 00:00:00 2001 From: Felix Dekker Date: Tue, 26 Jun 2018 16:06:41 +0200 Subject: [PATCH 1/2] Add task to build mining pipeline fat JAR --- modules/application/build.gradle | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/application/build.gradle b/modules/application/build.gradle index 11191c98b..6985bd55c 100644 --- a/modules/application/build.gradle +++ b/modules/application/build.gradle @@ -22,3 +22,16 @@ dependencies { compile group: "commons-cli", name: "commons-cli", version: commonsCliVersion } + +// Distribution +inspectClassesForKotlinIC.enabled = false + +jar { + manifest { + attributes "Main-Class": mainClassName + } + + from { + configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } + } +} From 00d8a6ec17a5e32ca181c2b6823b95c78aadfb43 Mon Sep 17 00:00:00 2001 From: Felix Dekker Date: Tue, 26 Jun 2018 16:20:38 +0200 Subject: [PATCH 2/2] Annotate workaround for creating JAR --- modules/application/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/application/build.gradle b/modules/application/build.gradle index 6985bd55c..8b44fa82f 100644 --- a/modules/application/build.gradle +++ b/modules/application/build.gradle @@ -24,7 +24,7 @@ dependencies { } // Distribution -inspectClassesForKotlinIC.enabled = false +inspectClassesForKotlinIC.enabled = false // Workaround for https://youtrack.jetbrains.com/issue/KT-24956 jar { manifest {