From 364f7fee6783a985765a65b38acd5e609c1a9110 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Tue, 17 Jan 2017 20:40:36 +0100 Subject: [PATCH] Sonar scanner, properties file for Gradle project --- SpringJava/Gradle/sonar-project.properties | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 SpringJava/Gradle/sonar-project.properties 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 -- 2.1.4