diff init20.gradle @ 245:df4f5bad8782

ensure property files exist in output task
author smith@nwoca.org
date Fri, 17 Feb 2017 16:15:26 +0000
parents 1c91b76fd9a3
children 9884456bea33
line wrap: on
line diff
--- a/init20.gradle	Tue Jan 24 21:01:48 2017 +0000
+++ b/init20.gradle	Fri Feb 17 16:15:26 2017 +0000
@@ -10,7 +10,7 @@
     }
     dependencies {
         classpath 'postgresql:postgresql:9.1-901.jdbc4'
-        classpath  'com.netflix.nebula:gradle-dependency-lock-plugin:4.3.0'
+        classpath  'com.netflix.nebula:gradle-dependency-lock-plugin:4.3.2'
     }
 }
 
@@ -214,7 +214,7 @@
                 inputs.files project.file("../environment${e}.groovy"), project.file("../private${e}.groovy"), project.file('../private.properties')
                 outputs.files new File(outputDir,propertyFile), buildenv
                 outputs.upToDateWhen {
-                    gradle.env == project.previousBuildenv
+                    gradle.env == project.previousBuildenv && outputs.getFiles().every { it.exists() }
                 }
                 doLast {
                     t.mkdirs()