diff metrics50.gradle @ 277:7352aab6847e

SC-181 Add new init50 and metrics50 gradle files for compatibility with gradle 5.0
author Greg Shepherd <shepherd@ssdt-ohio.org>
date Tue, 18 Feb 2020 16:16:23 -0500
parents
children 2f6d25a71778
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/metrics50.gradle	Tue Feb 18 16:16:23 2020 -0500
@@ -0,0 +1,28 @@
+
+buildscript {
+    repositories {
+        maven { url 'http://repos.ssdt.nwoca.org/artifactory/gradle-plugins' }
+        maven { url 'http://repos.ssdt.nwoca.org/artifactory/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']
+        }
+    }
+}