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

17
shade.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
JARPATH="$1"
LIBSPATH="$2"
FILENAME="$3"
TEMPDIR="./tempdir"
mkdir $TEMPDIR
unzip -o $LIBSPATH"/*.jar" -d $TEMPDIR
unzip -o $JARPATH -d $TEMPDIR
JARDIR=$(dirname "$JARPATH")
#Thanks to johni0702 for the following line of code <3
cd $TEMPDIR && ls | zip -r -@ "../$JARDIR/$FILENAME" && cd ..
rm -r $TEMPDIR