mirror of
https://github.com/MinimalBible/jsword-minimalbible
synced 2024-11-21 23:48:18 -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')
|
||||
}
|
||||
|
||||
task conditionalBuildJSword () {
|
||||
if(!file(doBuildJSword.ext.outputJar).exists())
|
||||
doBuildJSword
|
||||
}
|
||||
|
||||
artifacts {
|
||||
buildJSword(doBuildJSword.ext.outputJar) {
|
||||
builtBy doBuildJSword
|
||||
builtBy conditionalBuildJSword
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user