Updated build.gradle to automatically build fat jars with the dependencies in the /libs folder. This utilizes the shade.sh shell script. Use ./gradlew without explicitely invoking the build task, as this will automatically build a fat jar.

Sorry for this painful commit, but git somehow f'd up and sees changes in files where there aren't any.
This commit is contained in:
Marius Metzger
2015-03-21 17:05:53 +01:00
parent 14f53f7429
commit 11e26e0129
119 changed files with 167 additions and 69 deletions

16
build.gradle Normal file → Executable file
View File

@@ -77,3 +77,19 @@ processResources
exclude 'mcmod.info'
}
}
def shade() {
exec {
executable "./shade.sh"
args "./build/libs/replaymod-0.6.jar", "./libs", "replaymod-0.6.jar"
}
}
task doShade {
doLast {
shade()
}
}
defaultTasks 'build', 'doShade'