-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Upgrade PMD to 7.0.0 #462
Upgrade PMD to 7.0.0 #462
Conversation
I had a look and after setting a break point I could check the objects and see where all the required data is stored nowadays. |
for a benchmark see #463 (comment) |
benchmark looks good, removed label WIP |
Hello @openhab/sat-maintainers , kindly asking to review/merge this PR. We need this as one of the last pieces towards a Java21 build. Thanks! See the comparison of 0.15 and 0.16-SNAPSHOT: #463 (comment) See comments above:
|
sat-plugin/src/main/java/org/openhab/tools/analysis/tools/PmdChecker.java
Outdated
Show resolved
Hide resolved
@kaikreuzer When I checked a few days ago, it was still -rc4 :-) |
Add support for Java 21. https://docs.pmd-code.org/pmd-doc-7.0.0/pmd_release_notes.html Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Signed-off-by: Wouter Born <github@maindrain.net>
fd31dab
to
2f971ed
Compare
A lot of changes between rc4 and final, I had to adapt a few files. @wborn do you want to give it a try as well? btw: The new dependency |
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 still works well for me with these changes! 👍
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.
Thank you both!
@kaikreuzer thanks, could you please trigger the release of 0.16? |
@holgerfriedrich Will do. Is there any special reason why the build asks for Java 11? Or is it safe to change the constraint and build with with Java 17 instead (which seems to work well)? |
@kaikreuzer I typically build with newer versions on my local machine. However, the last time we tried to upgrade to 17, we have broken the release build, see #451. Something releated to the unleash plugin. |
@holgerfriedrich Many thanks for the reminder! |
Thanks a lot, @kaikreuzer 🚀 |
Add support for Java 21.
https://docs.pmd-code.org/pmd-doc-7.0.0-rc4/pmd_release_notes.html
Update to PMD7 gives me some headache, as AST has changed.
See migration guide, https://docs.pmd-code.org/pmd-doc-7.0.0-rc4/pmd_release_notes.html#migration-guide-for-pmd-7
Still struggling to get custom test to work properly (UseSLF4JLoggerRule.java).
@wborn Could use some help, just in case you know the details of AST parsing.....