diff metrics.gradle @ 142:45d2396e9fc8

configure sonar to publish only for 'develop' builts.
author Dave Smith <smith@nwoca.org>
date Fri, 25 Oct 2013 19:53:31 +0100
parents 51e4ee02d47a
children 0ca4f3c952b7
line wrap: on
line diff
--- a/metrics.gradle	Fri Oct 25 17:31:10 2013 +0100
+++ b/metrics.gradle	Fri Oct 25 19:53:31 2013 +0100
@@ -147,5 +147,14 @@
                 property "sonar.scm.url", "scm:hg:${gradle.hgRepositoryUrl}"
             }
         }
+				
     }
 }
+
+
+
+allprojects {
+    afterEvaluate { project ->	
+		project.getTasksByName('sonarRunner',false).each { it.enabled = gradle.branchStream == 'develop' }
+	}	
+}
\ No newline at end of file