annotate metrics50.gradle @ 331:7bc7c6c79d7c

check for current release and hotfix branches when looking for latest snapshot
author Marc Davis <davis@ssdt-ohio.org>
date Mon, 06 Mar 2023 13:37:28 -0500
parents 2f6d25a71778
children de8c350c511a
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 {
278
2f6d25a71778 DEP-19: update maven repo urls
Marc Davis <davis@ssdt-ohio.org>
parents: 277
diff changeset
4 maven { url 'https://docker.ssdt.io/artifactory/gradle-plugins' }
2f6d25a71778 DEP-19: update maven repo urls
Marc Davis <davis@ssdt-ohio.org>
parents: 277
diff changeset
5 maven { url 'https://docker.ssdt.io/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 {
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
16 property "sonar.host.url", "http://sonar.ssdt.io:9000"
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 }