Mercurial > public > develkit
annotate metrics.gradle @ 220:f6150996053f
DEP-11: remove release script. now part of gradle init
author | smith@nwoca.org |
---|---|
date | Fri, 01 Jul 2016 20:56:37 +0100 |
parents | 0ca4f3c952b7 |
children | 47535c8358ce |
rev | line source |
---|---|
126 | 1 apply plugin: "sonar-runner" |
85 | 2 ant.property(file: System.getProperty('user.home') + "/.ssdt/sonar.properties") |
3 | |
4 buildscript { | |
128
c93df17513f1
CM-133: add jacoco for standard coverage reports. Add sonar properties for SCM and bamboo plan
smith@nwoca.org
parents:
126
diff
changeset
|
5 repositories { |
85 | 6 maven { url 'http://repos.ssdt.nwoca.org/artifactory/gradle-plugins' } |
134 | 7 maven { url 'http://repos.ssdt.nwoca.org/artifactory/repo' } |
8 } | |
9 dependencies { | |
135 | 10 classpath 'me.davesmith:jaranalyzerplugin:0.2.0-SNAPSHOT' |
128
c93df17513f1
CM-133: add jacoco for standard coverage reports. Add sonar properties for SCM and bamboo plan
smith@nwoca.org
parents:
126
diff
changeset
|
11 } |
85 | 12 } |
13 | |
134 | 14 apply plugin: me.davesmith.gradle.plugins.jaranalyzer.JarAnalyzerPlugin |
15 | |
16 jaranalyzer { | |
17 dot = true | |
18 packageFilter += 'org.slf4j*' | |
19 packageFilter += 'groovyx.*' | |
20 } | |
21 | |
126 | 22 sonarRunner { |
23 sonarProperties { | |
24 property "sonar.host.url", "http://sonar.ssdt-ohio.org/" | |
25 property "sonar.jdbc.url", ant.properties['sonar.jdbc.url'] | |
26 property "sonar.jdbc.driverClassName", ant.properties['sonar.jdbc.driverClassName'] | |
27 property "sonar.jdbc.username", ant.properties['sonar.jdbc.username'] | |
28 property "sonar.jdbc.password", ant.properties['sonar.jdbc.password'] | |
128
c93df17513f1
CM-133: add jacoco for standard coverage reports. Add sonar properties for SCM and bamboo plan
smith@nwoca.org
parents:
126
diff
changeset
|
29 property "sonar.build-stability.url", "http://bamboo.ssdt-ohio.org/browse/${gradle.bambooPlan}" |
c93df17513f1
CM-133: add jacoco for standard coverage reports. Add sonar properties for SCM and bamboo plan
smith@nwoca.org
parents:
126
diff
changeset
|
30 property "sonar.scm.url", "scm:hg:${gradle.hgRepositoryUrl}" |
117
5e06e0629f85
correct groovy language setting and force profile name
smith@nwoca.org
parents:
116
diff
changeset
|
31 } |
85 | 32 } |
126 | 33 |
128
c93df17513f1
CM-133: add jacoco for standard coverage reports. Add sonar properties for SCM and bamboo plan
smith@nwoca.org
parents:
126
diff
changeset
|
34 subprojects { |
126 | 35 afterEvaluate { project -> |
85 | 36 |
126 | 37 def groovyProject = project.plugins.hasPlugin('groovy') |
38 sonarRunner { | |
39 sonarProperties { | |
40 property "sonar.language", groovyProject ? 'grvy' : 'java' | |
128
c93df17513f1
CM-133: add jacoco for standard coverage reports. Add sonar properties for SCM and bamboo plan
smith@nwoca.org
parents:
126
diff
changeset
|
41 property "sonar.build-stability.url", "http://bamboo.ssdt-ohio.org/browse/${gradle.bambooPlan}" |
c93df17513f1
CM-133: add jacoco for standard coverage reports. Add sonar properties for SCM and bamboo plan
smith@nwoca.org
parents:
126
diff
changeset
|
42 property "sonar.scm.url", "scm:hg:${gradle.hgRepositoryUrl}" |
85 | 43 } |
44 } | |
45 } | |
126 | 46 } |
142
45d2396e9fc8
configure sonar to publish only for 'develop' builts.
Dave Smith <smith@nwoca.org>
parents:
135
diff
changeset
|
47 |
45d2396e9fc8
configure sonar to publish only for 'develop' builts.
Dave Smith <smith@nwoca.org>
parents:
135
diff
changeset
|
48 allprojects { |
45d2396e9fc8
configure sonar to publish only for 'develop' builts.
Dave Smith <smith@nwoca.org>
parents:
135
diff
changeset
|
49 afterEvaluate { project -> |
45d2396e9fc8
configure sonar to publish only for 'develop' builts.
Dave Smith <smith@nwoca.org>
parents:
135
diff
changeset
|
50 project.getTasksByName('sonarRunner',false).each { it.enabled = gradle.branchStream == 'develop' } |
214
0ca4f3c952b7
DEP-11: add depency-lock plugin and a resolver to supply dynamic version based on branch. Cleanup metrics includes
smith@nwoca.org
parents:
142
diff
changeset
|
51 } |
142
45d2396e9fc8
configure sonar to publish only for 'develop' builts.
Dave Smith <smith@nwoca.org>
parents:
135
diff
changeset
|
52 } |