view metrics70.gradle @ 362:de8c350c511a tip

domain change from ssdt.io to ssdt-ohio.org
author Marc Davis <marc.davis@mcoecn.org>
date Wed, 04 Sep 2024 10:18:53 -0400
parents 36b6c48ee6c7
children
line wrap: on
line source

buildscript {
    repositories {
        maven { url 'https://docker.ssdt-ohio.org/artifactory/gradle-plugins' }
        maven { url 'https://docker.ssdt-ohio.org/artifactory/ssdt-repo' }
    }
    dependencies {
        classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.3"
    }
}

apply plugin: org.sonarqube.gradle.SonarQubePlugin

sonarqube {
    properties {
        property "sonar.host.url", "http://sonar.ssdt-ohio.org: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']
        }
    }
}