From 676aa2bed48a4d47322a15f7bd6cd47b3864d15a Mon Sep 17 00:00:00 2001 From: Alexey Zinchenko Date: Sat, 16 Feb 2019 12:24:29 +0300 Subject: [PATCH] Added possibility to build fatJar. --- build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build.gradle b/build.gradle index 3a200ba..dc3a9ab 100644 --- a/build.gradle +++ b/build.gradle @@ -11,6 +11,14 @@ repositories { mavenCentral() } +task fatJar(type: Jar) { + manifest { + attributes 'Main-Class': 'com.github.prominence.randomkitties.bot.Main' + } + from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } + with jar +} + dependencies { compile "org.telegram:telegrambots:4.1.2" compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.2'