comparison metrics.gradle @ 248:c8c8766492c5

USASR-2891: Update metrics.gradle to support update to Gradle v4.2.1 and Sonar v2.5
author Christopher Springer <springer@nwoca.org>
date Mon, 23 Oct 2017 18:52:24 +0100
parents 60c552fce00d
children 969e33b82a99
comparison
equal deleted inserted replaced
247:ecae2b9a41d3 248:c8c8766492c5
3 3
4 final boolean legacySonar = gradleCurrent < gradleV31 4 final boolean legacySonar = gradleCurrent < gradleV31
5 final boolean newSonar = !legacySonar 5 final boolean newSonar = !legacySonar
6 6
7 buildscript { 7 buildscript {
8 final GradleVersion gradleV421 = GradleVersion.version('4.2.1')
9
8 repositories { 10 repositories {
9 maven { url 'http://repos.ssdt.nwoca.org/artifactory/gradle-plugins' } 11 maven { url 'http://repos.ssdt.nwoca.org/artifactory/gradle-plugins' }
10 maven { url 'http://repos.ssdt.nwoca.org/artifactory/repo' } 12 maven { url 'http://repos.ssdt.nwoca.org/artifactory/repo' }
11 } 13 }
12 dependencies { 14 dependencies {
13 classpath 'me.davesmith:jaranalyzerplugin:0.2.0-SNAPSHOT' 15 classpath 'me.davesmith:jaranalyzerplugin:0.2.0-SNAPSHOT'
14 classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.2" 16 classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:${GradleVersion.current() >= gradleV421 ? '2.5' : '2.2'}"
15 } 17 }
16 } 18 }
17 19
18 apply plugin: me.davesmith.gradle.plugins.jaranalyzer.JarAnalyzerPlugin 20 apply plugin: me.davesmith.gradle.plugins.jaranalyzer.JarAnalyzerPlugin
19 21