Mercurial > public > develkit
annotate metrics.gradle @ 126:b2532280341e
CM-133: switch to sonar-runner
author | smith@nwoca.org |
---|---|
date | Tue, 04 Jun 2013 16:50:46 +0100 |
parents | 740e905fce78 |
children | c93df17513f1 |
rev | line source |
---|---|
85 | 1 |
126 | 2 apply plugin: "sonar-runner" |
85 | 3 |
4 ant.property(file: System.getProperty('user.home') + "/.ssdt/sonar.properties") | |
5 | |
6 buildscript { | |
7 repositories { | |
8 maven { url 'http://repos.ssdt.nwoca.org/artifactory/gradle-plugins' } | |
116 | 9 maven { url 'http://repos.ssdt.nwoca.org/artifactory/repository' } |
10 maven { url 'http://repos.ssdt.nwoca.org/artifactory/libs-snapshots' } | |
11 } | |
85 | 12 dependencies { |
116 | 13 classpath "me.davesmith:gradle-cobertura-plugin:1.0.2.SNAPSHOT" |
14 classpath "net.sourceforge.cobertura:cobertura:1.9.4.1" | |
85 | 15 } |
16 } | |
17 | |
126 | 18 sonarRunner { |
19 sonarProperties { | |
20 property "sonar.host.url", "http://sonar.ssdt-ohio.org/" | |
21 property "sonar.jdbc.url", ant.properties['sonar.jdbc.url'] | |
22 property "sonar.jdbc.driverClassName", ant.properties['sonar.jdbc.driverClassName'] | |
23 property "sonar.jdbc.username", ant.properties['sonar.jdbc.username'] | |
24 property "sonar.jdbc.password", ant.properties['sonar.jdbc.password'] | |
117
5e06e0629f85
correct groovy language setting and force profile name
smith@nwoca.org
parents:
116
diff
changeset
|
25 } |
85 | 26 } |
126 | 27 |
28 allprojects { | |
29 afterEvaluate { project -> | |
85 | 30 |
126 | 31 def groovyProject = project.plugins.hasPlugin('groovy') |
32 | |
33 sonarRunner { | |
34 sonarProperties { | |
35 property "sonar.language", groovyProject ? 'grvy' : 'java' | |
85 | 36 } |
37 } | |
38 } | |
126 | 39 } |