Conditionally build JSword

Drastically speeds up build times
This commit is contained in:
Bradlee Speice 2014-05-03 23:19:44 -04:00
parent 2bead8897d
commit b7bab90dad

View File

@ -10,8 +10,13 @@ task doBuildJSword (type: GradleBuild) {
ext.outputJar = file('distribution/jsword.jar')
}
task conditionalBuildJSword () {
if(!file(doBuildJSword.ext.outputJar).exists())
doBuildJSword
}
artifacts {
buildJSword(doBuildJSword.ext.outputJar) {
builtBy doBuildJSword
builtBy conditionalBuildJSword
}
}