Mercurial > public > develkit
annotate metrics50.gradle @ 362:de8c350c511a tip
domain change from ssdt.io to ssdt-ohio.org
author | Marc Davis <marc.davis@mcoecn.org> |
---|---|
date | Wed, 04 Sep 2024 10:18:53 -0400 |
parents | 2f6d25a71778 |
children |
rev | line source |
---|---|
277
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
1 |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
2 buildscript { |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
3 repositories { |
362
de8c350c511a
domain change from ssdt.io to ssdt-ohio.org
Marc Davis <marc.davis@mcoecn.org>
parents:
278
diff
changeset
|
4 maven { url 'https://docker.ssdt-ohio.org/artifactory/gradle-plugins' } |
de8c350c511a
domain change from ssdt.io to ssdt-ohio.org
Marc Davis <marc.davis@mcoecn.org>
parents:
278
diff
changeset
|
5 maven { url 'https://docker.ssdt-ohio.org/artifactory/ssdt-repo' } |
277
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
6 } |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
7 dependencies { |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
8 classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6" |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
9 } |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
10 } |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
11 |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
12 apply plugin: org.sonarqube.gradle.SonarQubePlugin |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
13 |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
14 sonarqube { |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
15 properties { |
362
de8c350c511a
domain change from ssdt.io to ssdt-ohio.org
Marc Davis <marc.davis@mcoecn.org>
parents:
278
diff
changeset
|
16 property "sonar.host.url", "http://sonar.ssdt-ohio.org:9000" |
277
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
17 property "sonar.login", System.getenv('bamboo_SONAR_TOKEN') |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
18 property "sonar.exclusions","**/ProjectVersion*" |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
19 } |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
20 } |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
21 |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
22 allprojects { |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
23 afterEvaluate { project -> |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
24 project.getTasksByName('sonarqube',false).each { |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
25 it.enabled = gradle.branchStream in ['release'] |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
26 } |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
27 } |
7352aab6847e
SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
Greg Shepherd <shepherd@ssdt-ohio.org>
parents:
diff
changeset
|
28 } |