From f056ad2f47627750945adc109f348699eac7e693 Mon Sep 17 00:00:00 2001 From: Thilo Schwarz Date: Mon, 21 Apr 2025 15:19:59 +0200 Subject: [PATCH] Enable SonarQube analysis on main Java source directory. Added the `-Dsonar.sources` property to specify the `src/main/java` directory for SonarQube analysis. This ensures the main Java source files are included in the scan, improving code quality assessment accuracy. --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 46af6ba..d7bba64 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,6 +56,7 @@ sonarcloud_scan: -Dsonar.token=${SONAR_TOKEN} \ -Dsonar.branch.name=develop \ -Dsonar.projectBaseDir=${CI_PROJECT_DIR} \ + -Dsonar.sources=src/main/java \ -Dsonar.tests=src/test/java \ -Dsonar.exclusions=docs/** \ -Dsonar.java.binaries=target/classes