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:
16
build.gradle
Normal file → Executable file
16
build.gradle
Normal file → Executable 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'
|
||||
Reference in New Issue
Block a user