Upgrade to Sonarqube plugin

This commit is contained in:
Eddú Meléndez 2016-03-14 16:38:42 +10:00 committed by Rob Winch
parent d85c0395bb
commit df65662bf0
4 changed files with 10 additions and 7 deletions

View File

@ -2,7 +2,7 @@ apply plugin: 'maven-bom'
apply from: "$rootDir/gradle/maven-deployment.gradle"
generatePom.enabled = false
sonarRunner.skipProject = true
sonarqube.skipProject = true
mavenBom {
projects = coreModuleProjects

View File

@ -14,7 +14,10 @@ buildscript {
}
}
apply plugin: 'sonar-runner'
plugins {
id "org.sonarqube" version "1.2"
}
apply plugin: 'base'
description = 'Spring Security'
@ -40,8 +43,8 @@ allprojects {
eclipse.project.name = "${project.name}-4.1.x"
}
sonarRunner {
sonarProperties {
sonarqube {
properties {
property "sonar.java.coveragePlugin", "jacoco"
property "sonar.projectName", "Spring Security"
property "sonar.jacoco.reportPath", "${buildDir.name}/jacoco.exec"
@ -82,7 +85,7 @@ configure(allprojects - javaProjects) {
configure(subprojects - coreModuleProjects - project(':spring-security-samples-messages-jc') - project(':spring-security-bom')) {
tasks.findByPath("artifactoryPublish")?.enabled = false
sonarRunner {
sonarqube {
skipProject = true
}
}

View File

@ -5,6 +5,6 @@ war {
baseName = "sample"
}
sonarRunner {
sonarqube {
skipProject = true
}

View File

@ -1,4 +1,4 @@
sonarRunner.skipProject = true
sonarqube.skipProject = true
dependencies {
provided "javax.servlet:javax.servlet-api:3.0.1"