Browse Source

Remove Sonar / Jacoco build configuration

Issue: SPR-15885
pull/1503/head
Brian Clozel 7 years ago
parent
commit
f6023c2202
  1. 43
      build.gradle

43
build.gradle

@ -16,7 +16,6 @@ plugins { @@ -16,7 +16,6 @@ plugins {
id "io.spring.dependency-management" version "1.0.3.RELEASE" apply false
id "org.jetbrains.kotlin.jvm" version "1.1.4" apply false
id "org.asciidoctor.convert" version "1.5.3"
id "org.sonarqube" version "2.5"
}
buildScan {
@ -179,19 +178,6 @@ configure(allprojects) { project -> @@ -179,19 +178,6 @@ configure(allprojects) { project ->
configure(subprojects - project(":spring-build-src")) { subproject ->
apply from: "${gradleScriptDir}/publish-maven.gradle"
configurations {
jacoco
}
dependencies {
jacoco("org.jacoco:org.jacoco.agent:0.7.5.201505241946:runtime")
}
gradle.taskGraph.whenReady {taskGraph ->
if (taskGraph.hasTask(':sonarqube')) {
test.jvmArgs "-javaagent:${configurations.jacoco.asPath}=destfile=${buildDir}/jacoco.exec,includes=org.springframework.*"
}
}
jar {
manifest.attributes["Created-By"] =
"${System.getProperty("java.version")} (${System.getProperty("java.specification.vendor")})"
@ -240,20 +226,6 @@ configure(subprojects - project(":spring-build-src")) { subproject -> @@ -240,20 +226,6 @@ configure(subprojects - project(":spring-build-src")) { subproject ->
}
}
sonarqube {
properties {
property "sonar.projectName", "Spring Framework"
property "sonar.profile", "Spring Framework"
property "sonar.jacoco.reportPath", "${buildDir.name}/jacoco.exec"
property "sonar.links.homepage", linkHomepage
property "sonar.links.ci", linkCi
property "sonar.links.issue", linkIssue
property "sonar.links.scm", linkScmUrl
property "sonar.links.scm_dev", linkScmDevConnection
property "sonar.java.coveragePlugin", "jacoco"
}
}
configure(rootProject) {
description = "Spring Framework"
@ -324,21 +296,6 @@ configure(rootProject) { @@ -324,21 +296,6 @@ configure(rootProject) {
}
configure([project(':spring-build-src'), project(':spring-framework-bom')]) {
sonarqube {
skipProject = true
}
}
configure(project(':spring-core')) {
sonarqube {
properties {
property "sonar.exclusions",
"src/main/java/org/springframework/cglib/**/*,src/main/java/org/springframework/asm/**/*"
}
}
}
/*
* Support publication of artifacts versioned by topic branch.
* CI builds supply `-P BRANCH_NAME=<TOPIC>` to gradle at build time.

Loading…
Cancel
Save