CI: Add Maven library/dependencies for more precise analysis 07/15207/2
authorMatthew Watkins <mwatkins@linuxfoundation.org>
Sat, 8 Nov 2025 07:21:28 +0000 (07:21 +0000)
committerMatthew Watkins <mwatkins@linuxfoundation.org>
Wed, 12 Nov 2025 11:33:47 +0000 (11:33 +0000)
Change-Id: Ia79496af3c41a8e124968dda04d8c0f98f150e88
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
sonar-project.properties

index d0abdf1..4f26e42 100644 (file)
@@ -27,5 +27,10 @@ sonar.java.target=17
 # Encoding
 sonar.sourceEncoding=UTF-8
 
+# Library dependencies (Maven dependencies for more precise analysis)
+# This points to all JAR files downloaded by Maven during the build
+sonar.java.libraries=**/target/dependency/*.jar,~/.m2/repository/**/*.jar
+sonar.java.test.libraries=**/target/dependency/*.jar,~/.m2/repository/**/*.jar
+
 # JaCoCo coverage report paths
 sonar.coverage.jacoco.xmlReportPaths=**/target/site/jacoco/jacoco.xml
\ No newline at end of file