Mercurial > public > develkit
diff metrics.gradle @ 133:0d8681ff046b
CM-133: fix sonar runner when coverage disabled
author | smith@nwoca.org |
---|---|
date | Thu, 06 Jun 2013 20:42:46 +0100 |
parents | 8a7c3673dee9 |
children | afafe40ae5a9 |
line wrap: on
line diff
--- a/metrics.gradle Thu Jun 06 18:54:27 2013 +0100 +++ b/metrics.gradle Thu Jun 06 20:42:46 2013 +0100 @@ -7,6 +7,7 @@ gradle.environment.put('coverage', gradle.environment.coverage.toBoolean()) } +println "metrics: coverage enabled: ${gradle.environment.coverage}" buildscript { repositories { maven { url 'http://repos.ssdt.nwoca.org/artifactory/gradle-plugins' } @@ -126,8 +127,10 @@ sonarRunner { sonarProperties { property "sonar.language", groovyProject ? 'grvy' : 'java' - property "sonar.java.coveragePlugin", "jacoco" - property "sonar.jacoco.reportPath", project.test.jacoco.destPath + if (gradle.environment.coverage) { + property "sonar.java.coveragePlugin", "jacoco" + property "sonar.jacoco.reportPath", project.test.jacoco.destPath + } property "sonar.build-stability.url", "http://bamboo.ssdt-ohio.org/browse/${gradle.bambooPlan}" property "sonar.scm.url", "scm:hg:${gradle.hgRepositoryUrl}" }