From b7bab90dad354cf8fee0f7a4c0319bce7f3cfa11 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Sat, 3 May 2014 23:19:44 -0400 Subject: [PATCH] Conditionally build JSword Drastically speeds up build times --- build.gradle | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 } }