Skip to content

Build: add a project-specific SonarQube scan for spring-webflux - #9

Draft
trly wants to merge 1 commit into
mainfrom
sonarqube-spring-webflux-4860776c-28c6-4cbd-9347-d1fe28aa7678
Draft

trly wants to merge 1 commit into
mainfrom
sonarqube-spring-webflux-4860776c-28c6-4cbd-9347-d1fe28aa7678

Conversation

@trly

@trly trly commented Sep 15, 2026

Copy link
Copy Markdown

Part of giving every spring-* sub-module its own SonarQube project. This work is split so each sub-module lands as an independent changeset, plus this one for the shared scan workflow.

Design

Each sub-module declares the org.sonarqube plugin (7.4.0.8496, the first release supporting Gradle 9) directly in its own <module>/<module>.gradle file and sets sonar.projectKey to org.springframework:<module>. Nothing is added to the root build or to gradle/, so every sub-module changeset is self-contained and can merge independently, in any order.

framework-api, framework-bom, framework-docs, framework-platform and integration-tests are out of scope.

Configuration required

No server details are hardcoded. These repository secrets are needed before any scan can report:

Secret Purpose
SONAR_HOST_URL Self-hosted SonarQube Server base URL
SONAR_TOKEN Analysis token permitted to create and submit projects

Each module's project must exist on the server, or auto-provisioning must be enabled, under its org.springframework:<module> key.

The scan workflow runs one job per sub-module, so merge it after the module changesets it references.

Created by a Sourcegraph agentic batch change.

Configures the org.sonarqube plugin so each spring-* sub-module is analyzed
as its own SonarQube project keyed org.springframework:<module>, 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant