From eddfa5a896e7bcf2d34579a13ee5504993cec7c3 Mon Sep 17 00:00:00 2001 From: Emux Date: Tue, 5 Sep 2017 12:29:39 +0300 Subject: [PATCH] vtm-theme-comparator: add 'fatjar' Gradle task #387 --- vtm-theme-comparator/build.gradle | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vtm-theme-comparator/build.gradle b/vtm-theme-comparator/build.gradle index 027ce49c9..43e5e5f77 100644 --- a/vtm-theme-comparator/build.gradle +++ b/vtm-theme-comparator/build.gradle @@ -20,3 +20,13 @@ sourceSets { resources.srcDirs = ['resources'] } } + +task fatJar(type: Jar, dependsOn: classes) { + classifier = 'jar-with-dependencies' + from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } + exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF' + manifest { + attributes('Main-Class': 'org.oscim.theme.comparator.Main') + } + with jar +}