add support for building uberjars via the "shadow" gradle plugin

This commit is contained in:
Gered 2015-11-30 13:25:14 -05:00
parent 6638813f1b
commit 09151fd92c

View file

@ -1,8 +1,11 @@
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
sourceCompatibility = 1.7
targetCompatibility = 1.7
version = '1.4.3'
repositories {
mavenCentral()
}
@ -13,3 +16,15 @@ dependencies {
compile 'com.thoughtworks.xstream:xstream:1.4.4'
}
buildscript {
repositories { jcenter() }
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.2'
}
}
shadowJar {
manifest {
attributes 'Main-Class': 'org.fenix.llanfair.Llanfair'
}
}