From 5a49c648eaeef2b142374e1ad058449d35dfc6ea Mon Sep 17 00:00:00 2001 From: Travis Date: Tue, 15 Sep 2026 16:44:57 +0000 Subject: [PATCH] Build: add a project-specific SonarQube scan Configures the org.sonarqube plugin so each spring-* sub-module is analyzed as its own SonarQube project keyed org.springframework:, rather than as a single aggregated scan of the whole build. Each module's configuration lives in its own build file so it can be reviewed and merged independently. Server URL and token are read from the SONAR_HOST_URL and SONAR_TOKEN environment variables rather than being hardcoded. --- spring-jms/spring-jms.gradle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/spring-jms/spring-jms.gradle b/spring-jms/spring-jms.gradle index 9014b09663da..2187dbd9bb38 100644 --- a/spring-jms/spring-jms.gradle +++ b/spring-jms/spring-jms.gradle @@ -1,3 +1,7 @@ +plugins { + id 'org.sonarqube' version '7.4.0.8496' +} + description = "Spring JMS" dependencies { @@ -24,3 +28,13 @@ dependencies { testImplementation("org.apache.activemq:artemis-junit-5") testImplementation("org.apache.activemq:artemis-jakarta-client") } + +// This module is analyzed as its own SonarQube project. +sonar { + properties { + property 'sonar.projectKey', 'org.springframework:spring-jms' + property 'sonar.projectName', 'Spring JMS' + property 'sonar.projectVersion', project.version + property 'sonar.sourceEncoding', 'UTF-8' + } +}