changeset 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 d3c09b4e3332
children 1963264c39c4
files metrics.gradle
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
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