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
f36eeb411845 add sonar publishing
smith@nwoca.org
parents:
diff changeset
1
126
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
2 apply plugin: "sonar-runner"
85
f36eeb411845 add sonar publishing
smith@nwoca.org
parents:
diff changeset
3
f36eeb411845 add sonar publishing
smith@nwoca.org
parents:
diff changeset
4 ant.property(file: System.getProperty('user.home') + "/.ssdt/sonar.properties")
f36eeb411845 add sonar publishing
smith@nwoca.org
parents:
diff changeset
5
f36eeb411845 add sonar publishing
smith@nwoca.org
parents:
diff changeset
6 buildscript {
f36eeb411845 add sonar publishing
smith@nwoca.org
parents:
diff changeset
7 repositories {
f36eeb411845 add sonar publishing
smith@nwoca.org
parents:
diff changeset
8 maven { url 'http://repos.ssdt.nwoca.org/artifactory/gradle-plugins' }
116
8f3ba3b811bf update cobertura configuration
smith@nwoca.org
parents: 108
diff changeset
9 maven { url 'http://repos.ssdt.nwoca.org/artifactory/repository' }
8f3ba3b811bf update cobertura configuration
smith@nwoca.org
parents: 108
diff changeset
10 maven { url 'http://repos.ssdt.nwoca.org/artifactory/libs-snapshots' }
8f3ba3b811bf update cobertura configuration
smith@nwoca.org
parents: 108
diff changeset
11 }
85
f36eeb411845 add sonar publishing
smith@nwoca.org
parents:
diff changeset
12 dependencies {
116
8f3ba3b811bf update cobertura configuration
smith@nwoca.org
parents: 108
diff changeset
13 classpath "me.davesmith:gradle-cobertura-plugin:1.0.2.SNAPSHOT"
8f3ba3b811bf update cobertura configuration
smith@nwoca.org
parents: 108
diff changeset
14 classpath "net.sourceforge.cobertura:cobertura:1.9.4.1"
85
f36eeb411845 add sonar publishing
smith@nwoca.org
parents:
diff changeset
15 }
f36eeb411845 add sonar publishing
smith@nwoca.org
parents:
diff changeset
16 }
f36eeb411845 add sonar publishing
smith@nwoca.org
parents:
diff changeset
17
126
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
18 sonarRunner {
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
19 sonarProperties {
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
20 property "sonar.host.url", "http://sonar.ssdt-ohio.org/"
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
21 property "sonar.jdbc.url", ant.properties['sonar.jdbc.url']
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
22 property "sonar.jdbc.driverClassName", ant.properties['sonar.jdbc.driverClassName']
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
23 property "sonar.jdbc.username", ant.properties['sonar.jdbc.username']
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
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
f36eeb411845 add sonar publishing
smith@nwoca.org
parents:
diff changeset
26 }
126
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
27
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
28 allprojects {
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
29 afterEvaluate { project ->
85
f36eeb411845 add sonar publishing
smith@nwoca.org
parents:
diff changeset
30
126
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
31 def groovyProject = project.plugins.hasPlugin('groovy')
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
32
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
33 sonarRunner {
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
34 sonarProperties {
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
35 property "sonar.language", groovyProject ? 'grvy' : 'java'
85
f36eeb411845 add sonar publishing
smith@nwoca.org
parents:
diff changeset
36 }
f36eeb411845 add sonar publishing
smith@nwoca.org
parents:
diff changeset
37 }
f36eeb411845 add sonar publishing
smith@nwoca.org
parents:
diff changeset
38 }
126
b2532280341e CM-133: switch to sonar-runner
smith@nwoca.org
parents: 119
diff changeset
39 }