diff --git a/build.gradle b/build.gradle index 8d9b402..58d730b 100644 --- a/build.gradle +++ b/build.gradle @@ -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 } }