Skip to content

[java] Use different version of pmd-core and pmd-java? #3039

Answered by adangel
fflatorre asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @fflatorre ,
this is not supported - and this specific combination will never be: Mixing two different major versions (PMD 5.x.y and PMD 6.x.y) won't work (as you have seen). It might work to mix two minor versions within a major version, e.g. PMD 6.2.0 and PMD 6.0.0, but even this is not guaranteed. We only guarantee, that pmd-core/pmd-java with the same version are working together (we don't test anything else).

The way forward here is, to simply update both dependencies to PMD 6.2.0. The ruleset should be compatible (as long as you don't use the removed rule UseSingleton). You might just see a lot of deprecation warnings, since we moved the rules into categories with PMD 6. But thes…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by adangel
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1037 on January 15, 2021 09:34.