diff --git a/build.gradle b/build.gradle index 4828353a6..1d522757e 100644 --- a/build.gradle +++ b/build.gradle @@ -128,14 +128,15 @@ subprojects { property "sonar.host.url", "https://sonar.katana.soramitsu.co.jp" property "sonar.java.coveragePlugin", "jacoco" property "sonar.projectName", "${project.group}:${rootProject.name}.${project.name}" - property "sonar.sources", "${project.projectDir}/src/main/kotlin" + property "sonar.sources", "${project.projectDir}/src/main/java" + property "sonar.tests", "${project.projectDir}/src/test" + property "sonar.java.test.binaries", "${project.projectDir}/build/test-results/test/binary" + property "sonar.junit.reportPaths", "${project.projectDir}/build/test-results/test/" + property "sonar.coverage.jacoco.xmlReportPaths", "${project.projectDir}/build/reports/testCoverage/*.xml" // exclude projects with no tests if (project.name != "codegen" && project.name != "model" && project.name != "tutorial") { property "sonar.tests", "${project.projectDir}/src/test" } - property "sonar.java.test.binaries", "${project.projectDir}/build/test-results/test/binary" - property "sonar.junit.reportPaths", "${project.projectDir}/build/test-results/test/" - property 'sonar.coverage.jacoco.xmlReportPaths', "$projectDir.parentFile.path/build/reports/jacoco/codeCoverageReport/codeCoverageReport.xml" } } }