Mercurial > public > develkit
diff metrics.gradle @ 239:60c552fce00d
DEP-13: disable legacy sonar analysis
author | smith@nwoca.org |
---|---|
date | Fri, 21 Oct 2016 18:16:09 +0100 |
parents | d7f0ae9e28af |
children | c8c8766492c5 |
line wrap: on
line diff
--- a/metrics.gradle Thu Oct 20 22:13:39 2016 +0100 +++ b/metrics.gradle Fri Oct 21 18:16:09 2016 +0100 @@ -15,7 +15,6 @@ } } - apply plugin: me.davesmith.gradle.plugins.jaranalyzer.JarAnalyzerPlugin jaranalyzer { @@ -48,38 +47,8 @@ if (legacySonar) { - apply plugin: "sonar-runner" - ant.property(file: System.getProperty('user.home') + "/.ssdt/sonar.properties") - - sonarRunner { - sonarProperties { - property "sonar.host.url", "http://sonar.ssdt-ohio.org/" - property "sonar.jdbc.url", ant.properties['sonar.jdbc.url'] - property "sonar.jdbc.driverClassName", ant.properties['sonar.jdbc.driverClassName'] - property "sonar.jdbc.username", ant.properties['sonar.jdbc.username'] - property "sonar.jdbc.password", ant.properties['sonar.jdbc.password'] - property "sonar.build-stability.url", "http://bamboo.ssdt-ohio.org/browse/${gradle.bambooPlan}" - property "sonar.scm.url", "scm:hg:${gradle.hgRepositoryUrl}" - } - } - - subprojects { - afterEvaluate { project -> + task('sonar') << { + println "legacy sonar disabled" + } - def groovyProject = project.plugins.hasPlugin('groovy') - sonarRunner { - sonarProperties { - property "sonar.language", groovyProject ? 'grvy' : 'java' - property "sonar.build-stability.url", "http://bamboo.ssdt-ohio.org/browse/${gradle.bambooPlan}" - 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