Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ buildscript {
}
}

plugins {
id "org.sonarqube" version "1.2"
}

apply plugin: 'org.asciidoctor.gradle.asciidoctor'
apply plugin: "sonar-runner"

ext.GRADLE_SCRIPT_DIR = "${rootProject.projectDir}/gradle"
ext.JAVA_MODULE_SCRIPT = "${GRADLE_SCRIPT_DIR}/java-module.gradle"
Expand Down Expand Up @@ -56,7 +59,7 @@ configure(coreModules) {
}

configure(subprojects - coreModules) {
sonarRunner {
sonarqube {
skipProject = true
}

Expand All @@ -67,8 +70,8 @@ description = "Spring LDAP"

configurations.archives.artifacts.clear()

sonarRunner {
sonarProperties {
sonarqube {
properties {
property "sonar.exclusions", "file:**/generated-src/**"
property "sonar.java.coveragePlugin", "jacoco"
property "sonar.jacoco.reportPath", "${buildDir.name}/jacoco.exec"
Expand Down
4 changes: 2 additions & 2 deletions gradle/sample-war.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ apply from: MAVEN_DEPLOYMENT_SCRIPT
apply plugin: 'war'
apply plugin: 'jetty'

sonarRunner {
sonarqube {
skipProject = true
}

build.dependsOn generatePom
build.dependsOn generatePom