diff metrics70.gradle @ 292:2307b12a55e6

merge
author Marc Davis <marc.davis@mcoecn.org>
date Mon, 22 Aug 2022 14:34:04 -0400
parents 36b6c48ee6c7
children de8c350c511a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/metrics70.gradle	Mon Aug 22 14:34:04 2022 -0400
@@ -0,0 +1,28 @@
+
+buildscript {
+    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:3.3"
+    }
+}
+
+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']
+        }
+    }
+}