diff --git a/build.gradle b/build.gradle index e323053cd5..ce2bc251c8 100644 --- a/build.gradle +++ b/build.gradle @@ -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 -> 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 -> } } -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) { } -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=` to gradle at build time.