annotate metrics50.gradle @ 361:7b6d30651db7 tip

Cygwin has an ENV that container 'CI'. Causing build issues. Just check for 'github' to determine if it is a local build
author davis@ssdt-ohio.org
date Thu, 16 Nov 2023 15:52:40 -0500
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 {
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 }