Mercurial > public > develkit
comparison metrics70.gradle @ 290:36b6c48ee6c7
SSED-1600: Created metrics70.gradle with an updated sonarqube-gradle-plugin (from 2.6 to 3.3), modified init70.gradle to use metrics70.gradle
author | Kyle Miller <kyle.miller@mcoecn.org> |
---|---|
date | Wed, 20 Jul 2022 14:38:11 +0100 |
parents | |
children | de8c350c511a |
comparison
equal
deleted
inserted
replaced
289:093ff657fd79 | 290:36b6c48ee6c7 |
---|---|
1 | |
2 buildscript { | |
3 repositories { | |
4 maven { url 'https://docker.ssdt.io/artifactory/gradle-plugins' } | |
5 maven { url 'https://docker.ssdt.io/artifactory/ssdt-repo' } | |
6 } | |
7 dependencies { | |
8 classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.3" | |
9 } | |
10 } | |
11 | |
12 apply plugin: org.sonarqube.gradle.SonarQubePlugin | |
13 | |
14 sonarqube { | |
15 properties { | |
16 property "sonar.host.url", "http://sonar.ssdt.io:9000" | |
17 property "sonar.login", System.getenv('bamboo_SONAR_TOKEN') | |
18 property "sonar.exclusions","**/ProjectVersion*" | |
19 } | |
20 } | |
21 | |
22 allprojects { | |
23 afterEvaluate { project -> | |
24 project.getTasksByName('sonarqube',false).each { | |
25 it.enabled = gradle.branchStream in ['release'] | |
26 } | |
27 } | |
28 } |