From ff81235d9b769a703cf6d42e47dd42f197f0e992 Mon Sep 17 00:00:00 2001 From: BAStos525 Date: Thu, 7 Nov 2024 19:03:05 +0300 Subject: [PATCH] try sonar on push Signed-off-by: BAStos525 --- build.gradle | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 4828353a..1d522757 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" } } }