Hello,
Congrats on releasing 2025.3!
I was searching for the corresponding maven version and expected to see a new one (presumably 25.6.0.108892
?) on maven central.
However the last one still seems to be 25.5.0
on: Central Repository: org/sonarsource/sonarqube/sonar-core
Hi,
SonarQube 2025.3 and SonarQube 25.5/25.6 (to be published this month) are two different things. The first one is the commercial version and the artifacts aren’t published to maven central. The other one is the Community Build, open source, with artifacts published.
There’s no exact match between the Community and the commercial editions.
Thanks for clarifying, I got a bit confused here.
Since 2025.3 (commercial edition) is using the plugin API 11.4 I was looking for a community edition also using it, but the latest is 25.5 and it uses the plugin API 11.3
I’ll wait for the upcoming version then, thanks for the answer!
Follow-up question:
The plugin API lets up check the runtime version, so we can do things like:
Version sonarQubeVersion = context.getSonarQubeVersion();
if (!sonarQubeVersion.isGreaterThanOrEqual(Version.create(25, 5))) {
What would be the correct check for < 2025.3
(when running a commercial edition) and at the same time < 25.6
(when running the community edition)?
I’d guess the proper API is: sonar-plugin-api/plugin-api/src/main/java/org/sonar/api/SonarRuntime.java at master · SonarSource/sonar-plugin-api · GitHub
and sonar-plugin-api/plugin-api/src/main/java/org/sonar/api/Plugin.java at master · SonarSource/sonar-plugin-api · GitHub.
i.e. context.getRuntime.getApiVersion()
Note that getSonarQubeVersion() is also deprecated: sonar-plugin-api/plugin-api/src/main/java/org/sonar/api/Plugin.java at master · SonarSource/sonar-plugin-api · GitHub
But let the sonar guys confirm…
Jano
As mentioned by @janosvitok checking the plugin API version to be lower than 12.0.0.2960 will be fine for both SQS Version < 2025.3 and SQCB Version < 25.6.
Since the version was bumped after the release of both SQS 2025.2 and SQCB 25.5
Thanks @Matteo_Mara and @janosvitok
Checking the API version worked!