view metrics50.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 2f6d25a71778
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:2.6"
    }
}

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']
        }
    }
}