annotate metrics50.gradle @ 277:7352aab6847e

SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
author Greg Shepherd <shepherd@ssdt-ohio.org>
date Tue, 18 Feb 2020 16:16:23 -0500
parents
children 2f6d25a71778
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 {
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
4 maven { url 'http://repos.ssdt.nwoca.org/artifactory/gradle-plugins' }
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
5 maven { url 'http://repos.ssdt.nwoca.org/artifactory/repo' }
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 }