Upgrade to Sonarqube plugin
This commit is contained in:
parent
d85c0395bb
commit
df65662bf0
|
@ -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
|
||||
|
|
11
build.gradle
11
build.gradle
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,6 @@ war {
|
|||
baseName = "sample"
|
||||
}
|
||||
|
||||
sonarRunner {
|
||||
sonarqube {
|
||||
skipProject = true
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
sonarRunner.skipProject = true
|
||||
sonarqube.skipProject = true
|
||||
|
||||
dependencies {
|
||||
provided "javax.servlet:javax.servlet-api:3.0.1"
|
||||
|
|
Loading…
Reference in New Issue