mirror of
https://github.com/MinimalBible/jsword-minimalbible
synced 2024-12-22 06:38:27 -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