Hi ,
When do you plan to support the Java 21 LTS for the sonar-maven-plugin?
Cheers,
Thom1
Hi ,
When do you plan to support the Java 21 LTS for the sonar-maven-plugin?
Cheers,
Thom1
Hello,
I moved your topic out of the long Java11 deprecation announcement because I believe it will require multiple interactions.
Did you try to scan a Java 21 project? Is that failing? What is the error?
As of writing, Sonar doesnāt support scanning Java 21 projects. We are working on it but it requires changing the minimum supported JRE for Sonar to Java 17 and there is a dependency on the ECJ that also needs to support Java 21.
All in all, donāt expect Java 21 to be supported before Jan 2024.
Alex
Hello,
Thanks for the topic update and the answer.
Yes I tried scanning a Java 21 with the sonar-maven-plugin and ended up with the following error:
238[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project xxxxx: Unsupported Java version for PMD: 21 -> [Help 1]
Got the same error with the latest plugin version.
Thom1
I just want to highlight this āfor PMDā. This is not related to what Sonar provides out of the box.
I believe you should also raise your concerns to the PMD Team if you expect to continue to use PMD when Sonar will support Java 21 scanning.
Iām always surprised to discover people still using PMD: why? What is missing in Sonar that forces to use PMD?
I am just guessing here ā¦ maybe the ability to scan java 21 source? but what do i know. i have no idea (i really have not, i just hope this here implies pmd can already scan latest source, tho )
So am i. If i remember correctly, there was a page having the PMD rules already implemented by Sonarsource and the remaining rules. @Alexandre_Gigleux is there still such a list ?
i already feel ann breathin down our necks if we keep on mentioning pmd (but i also kinda remember this āruleset-diffā as kind of a āhot topicā some years ago, right?)
Hi guys,
We used to update that report on a nightly basis. Then someone decided it was unnecessary and it got dropped.
Ann
Hey Together,
You are sort of acting like we additionally activated PMD. Which is - at least in my case - not true. I just would use gradle sonar plugin (v4.4.1.3373). And that by default uses PMD - as you can see in the sonar debug output:
[INFO] [org.sonarqube.gradle.SonarTask] Sensor PmdSensor [pmd]
[INFO] [org.sonarqube.gradle.SonarTask] Execute PMD 6.45.0
You must have GitHub - jborgers/sonar-pmd: āļø PMD Plugin for SonarQube installed on your instanceā¦ which more or less means that you have additionally activated PMD.
Okay, can you tell me how to instruct the sonar plugin not to activate PMD? Do you have an example of that not being active?
Thatās a good question for the maintainers of sonar-pmd ā the plugin itself is entirely in control of when it runs.
@Torped There is probably something I donāt get in your question but if you donāt want the PMD rules, just delete the corresponding sonar-pmd-plugin-3.4.0.jar file from your extensions/plugins directory.
Hi, can we expect Java 21 support in the next 10.4 release?
Hello,
Unfortunately, we had to delay again the support of Java 21. It wonāt be supported by SonarQube 10.4
We expect to be able to deliver this in SonarCloud in the coming weeks and with SonarQube 10.5 (in approx. 2 months from now).
Alex
Hello,
Iāve just announced that Java 21 is now supported on SonarCloud and I can confirm that this will come with SonarQube 10.5
Alex
Hi Alexandre - thanks for the good news. Are there any plans to also support JDK21 in the 9.9LTS?
I ask this, because larger companies typically rely on the LTS versionsā¦
JĆ¼rgen
We donāt use SonarCloud but we do use SonarQube in our enterprise environment. Does this mean that SonarQube 10.5 for enterprise is also released?
There is no plan to bring support for Java21 in the 9.9 LTS.
SonarQube 10.5 with support for Java21 should be released beginning of April 2024.
Will the upcoming version of SonarQube be a LTS or this is not yet defined? Is there a clue which 10.x could be a LTS candidate?