Skip to content

Commit 36bacb4

Browse files
committed
Move to the offical SonarQube plugin
1 parent 40201e2 commit 36bacb4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build.gradle

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ buildscript {
22
repositories {
33
jcenter()
44
maven { url 'https://repo.spring.io/plugins-release' }
5+
maven { url 'https://plugins.gradle.org/m2/' }
56
}
67
dependencies {
78
classpath 'io.spring.gradle:dependency-management-plugin:0.5.3.RELEASE'
89
classpath 'org.springframework.build.gradle:propdeps-plugin:0.0.7'
910
classpath 'io.spring.gradle:spring-io-plugin:0.0.4.RELEASE'
11+
classpath 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:1.2'
1012
}
1113
}
1214

@@ -18,10 +20,10 @@ allprojects {
1820
}
1921

2022
apply plugin: 'samples'
21-
apply plugin: 'sonar-runner'
23+
apply plugin: 'org.sonarqube'
2224

23-
sonarRunner {
24-
sonarProperties {
25+
sonarqube {
26+
properties {
2527
property 'sonar.branch', '1.0.x'
2628
property 'sonar.jacoco.reportPath', "${buildDir.name}/jacoco.exec"
2729
property 'sonar.java.coveragePlugin', 'jacoco'

0 commit comments

Comments
 (0)