From: Gustavo Martin Morcuende Date: Tue, 17 Jan 2017 19:40:36 +0000 (+0100) Subject: Sonar scanner, properties file for Gradle project X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=364f7fee6783a985765a65b38acd5e609c1a9110;p=JavaForFun Sonar scanner, properties file for Gradle project --- diff --git a/SpringJava/Gradle/sonar-project.properties b/SpringJava/Gradle/sonar-project.properties new file mode 100644 index 0000000..d88e7b9 --- /dev/null +++ b/SpringJava/Gradle/sonar-project.properties @@ -0,0 +1,39 @@ +# Required metadata +sonar.projectKey=de.spring.jpa:spring-jpa-persistence +sonar.projectName=spring-jpa-persistence +sonar.projectDescription=Spring JPA example +sonar.projectVersion=1.0-SNAPSHOT +sonar.links.scm=https://github.com/gumartinm/JavaForFun/tree/master/SpringJava/Gradle +sonar.links.homepage=https://github.com/gumartinm/JavaForFun/tree/master/SpringJava/Gradle + +sonar.host.url=http://sonarqube:9091/sonarqube + +# Comma-separated paths to directories with sources (required) +sonar.sources=src/main + +sonar.java.binaries=build/classes/main +sonar.binaries=build/classes/main + + +# Language +# My project has HTML and JavaScript. Comma separated languages do not work. +# However since SonarQube 4.2 we do not need to declare the project's languages. +# SonarQube detects by itself what languages is using the project to be analyzed!! +# See: http://stackoverflow.com/a/13625963 +#sonar.language=js THIS OPTION IS NOT REQUIRED ANYMORE :) + +# Encoding of sources files +sonar.sourceEncoding=UTF-8 + + + +# Test + +sonar.jacoco.reportPath=build/jacoco/jacoco.exec +sonar.jacoco.itReportPath=build/jacoco/jacoco-it.exec + +# Comma-separated path to directories containing tests. +sonar.tests=src/test,src/integTest +sonar.junit.reportsPath=build/test-results/test + +sonar.java.test.binaries=build/classes/test