summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromangraef <roman.graef@gmail.com>2018-02-09 15:09:14 +0100
committerromangraef <roman.graef@gmail.com>2018-02-09 15:09:14 +0100
commit54bf740e7dde2af3a91fade6c37f55b5ce8f1087 (patch)
tree62bf9586b24f02e8b2d1360a5ddd82f8ad57a76f
parent2d95aa1abc20f55cdca090145775af326c145028 (diff)
downloadprivateroombot-54bf740e7dde2af3a91fade6c37f55b5ce8f1087.tar.gz
privateroombot-54bf740e7dde2af3a91fade6c37f55b5ce8f1087.tar.bz2
privateroombot-54bf740e7dde2af3a91fade6c37f55b5ce8f1087.zip
added shadow to project
-rw-r--r--build.gradle25
1 files changed, 24 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index eed83bf..913b6db 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,10 +1,33 @@
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2'
+ }
+}
+plugins {
+ id 'java'
+ id 'application'
+ id 'com.github.johnrengelman.shadow' version '2.0.2'
+}
+
+shadowJar {
+ classifier = 'shadow'
+}
+
group 'de.romjaki'
version '1.0-SNAPSHOT'
-apply plugin: 'java'
+mainClassName = 'de.romjaki.privateroombot.Main'
sourceCompatibility = 1.8
+jar {
+ manifest {
+ attributes 'Main-Class': mainClassName
+ }
+}
repositories {
mavenCentral()
jcenter()