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"
|
apply from: "$rootDir/gradle/maven-deployment.gradle"
|
||||||
|
|
||||||
generatePom.enabled = false
|
generatePom.enabled = false
|
||||||
sonarRunner.skipProject = true
|
sonarqube.skipProject = true
|
||||||
|
|
||||||
mavenBom {
|
mavenBom {
|
||||||
projects = coreModuleProjects
|
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'
|
apply plugin: 'base'
|
||||||
|
|
||||||
description = 'Spring Security'
|
description = 'Spring Security'
|
||||||
|
@ -40,8 +43,8 @@ allprojects {
|
||||||
eclipse.project.name = "${project.name}-4.1.x"
|
eclipse.project.name = "${project.name}-4.1.x"
|
||||||
}
|
}
|
||||||
|
|
||||||
sonarRunner {
|
sonarqube {
|
||||||
sonarProperties {
|
properties {
|
||||||
property "sonar.java.coveragePlugin", "jacoco"
|
property "sonar.java.coveragePlugin", "jacoco"
|
||||||
property "sonar.projectName", "Spring Security"
|
property "sonar.projectName", "Spring Security"
|
||||||
property "sonar.jacoco.reportPath", "${buildDir.name}/jacoco.exec"
|
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')) {
|
configure(subprojects - coreModuleProjects - project(':spring-security-samples-messages-jc') - project(':spring-security-bom')) {
|
||||||
tasks.findByPath("artifactoryPublish")?.enabled = false
|
tasks.findByPath("artifactoryPublish")?.enabled = false
|
||||||
sonarRunner {
|
sonarqube {
|
||||||
skipProject = true
|
skipProject = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,6 @@ war {
|
||||||
baseName = "sample"
|
baseName = "sample"
|
||||||
}
|
}
|
||||||
|
|
||||||
sonarRunner {
|
sonarqube {
|
||||||
skipProject = true
|
skipProject = true
|
||||||
}
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
sonarRunner.skipProject = true
|
sonarqube.skipProject = true
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
provided "javax.servlet:javax.servlet-api:3.0.1"
|
provided "javax.servlet:javax.servlet-api:3.0.1"
|
||||||
|
|
Loading…
Reference in New Issue