mirror of
https://github.com/MinimalBible/jsword-minimalbible
synced 2024-11-22 07:58:20 -05:00
Conditionally build JSword
Drastically speeds up build times
This commit is contained in:
parent
2bead8897d
commit
b7bab90dad
@ -10,8 +10,13 @@ task doBuildJSword (type: GradleBuild) {
|
|||||||
ext.outputJar = file('distribution/jsword.jar')
|
ext.outputJar = file('distribution/jsword.jar')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task conditionalBuildJSword () {
|
||||||
|
if(!file(doBuildJSword.ext.outputJar).exists())
|
||||||
|
doBuildJSword
|
||||||
|
}
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
buildJSword(doBuildJSword.ext.outputJar) {
|
buildJSword(doBuildJSword.ext.outputJar) {
|
||||||
builtBy doBuildJSword
|
builtBy conditionalBuildJSword
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user