Commit f04d099f authored by Daniel Gerhardt's avatar Daniel Gerhardt

Update Gradle SonarQube plugin config

parent 4c6133f0
plugins {
id "org.sonarqube" version "2.7"
}
apply plugin: 'eclipse-wtp'
apply plugin: 'war'
apply plugin: 'jacoco'
apply plugin: 'sonar-runner'
jar {
manifest {
......@@ -43,14 +46,12 @@ dependencies {
test { systemProperties 'property': 'value' }
sonarRunner {
sonarProperties {
sonarqube {
properties {
property "sonar.sourceEncoding", "UTF-8"
property "sonar.language", "java"
property "sonar.jacoco.reportPath", "$buildDir/jacoco/test.exec"
property "sonar.host.url", project.hasProperty('sonarServerUrl') ? sonarServerUrl : ''
property "sonar.jdbc.url", project.hasProperty('sonarDatabaseUrl') ? sonarDatabaseUrl : ''
property "sonar.jdbc.driverClassName", project.hasProperty('sonarDatabaseDriverClassName') ? sonarDatabaseDriverClassName : ''
property "sonar.jdbc.username", project.hasProperty('sonarDatabaseUsername') ? sonarDatabaseUsername : ''
property "sonar.jdbc.password", project.hasProperty('sonarDatabasePassword') ? sonarDatabasePassword : ''
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment