-
Notifications
You must be signed in to change notification settings - Fork 713
SONARJAVA-5942 Fix CI: use Java 21 in plugin QA and bump SpotBugs to 4.9.8.2 #5384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
9c49b77 to
176d0e5
Compare
dorian-burihabwa-sonarsource
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good to me but I am wondering if we could remove the versioning from the plugin invocation in the test for easier maintenance
.github/workflows/build.yml
Outdated
| - name: Select Java 17 | ||
| run: mise use java@17 | ||
| - name: Select Java 21 | ||
| run: mise use java@21 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be a little early to switch all plugin QA to Java 21 but at least that's work we won't have to do for the LTA
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed the config, so that we keep running LATEST_RELEASE with Java 17.
| MavenBuild build = TestUtils.createMavenBuild().setPom(TestUtils.projectPom("spotbugs-external-report")) | ||
| .setProperty("sonar.java.spotbugs.reportPaths", "target" + File.separator + "spotbugsXml.xml") | ||
| .setGoals("clean package com.github.spotbugs:spotbugs-maven-plugin:4.5.3.0:spotbugs", "sonar:sonar"); | ||
| .setGoals("clean package com.github.spotbugs:spotbugs-maven-plugin:4.9.8.2:spotbugs", "sonar:sonar"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to specify the version of the plugin here? My understanding is that because the plugin is versioned in the pom.xml of the project, this is redundant. Or am I missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a maven expert. I dropped the version and the CI passes, so I guess we can do this.
47160b9 to
a42114c
Compare
|





No description provided.