Mercurial > public > develkit
view metrics40.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 | 2f6d25a71778 |
children | de8c350c511a |
line wrap: on
line source
import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.api.tasks.bundling.Jar import org.gradle.api.DefaultTask import org.gradle.api.tasks.OutputDirectory import org.gradle.api.tasks.OutputFile import org.gradle.api.tasks.TaskAction import java.util.jar.JarFile final GradleVersion gradleCurrent = GradleVersion.current() final GradleVersion gradleV31 = GradleVersion.version('3.1') buildscript { final GradleVersion gradleV421 = GradleVersion.version('4.2.1') repositories { maven { url 'https://docker.ssdt.io/artifactory/gradle-plugins' } maven { url 'https://docker.ssdt.io/artifactory/ssdt-repo' } } dependencies { classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.6" } } apply plugin: org.sonarqube.gradle.SonarQubePlugin sonarqube { properties { property "sonar.host.url", "http://sonar.ssdt.io:9000" property "sonar.login", System.getenv('bamboo_SONAR_TOKEN') property "sonar.exclusions","**/ProjectVersion*" } } allprojects { afterEvaluate { project -> project.getTasksByName('sonarqube',false).each { it.enabled = gradle.branchStream in ['release'] } } }