-
I'm trying to upgrade pmd-core to leverage the caching benefits (version 6.2.0) but still keep using the existing rule set (version 5.5.2), however every attempt fails with exception like :
Not sure if anything to do with this commit Affects PMD Version:
Running PMD through: [Ant] |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @fflatorre , 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 these are just warnings, the rules should still be working. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hi @adangel , Thanks for the clarification. Cheers, |
Beta Was this translation helpful? Give feedback.
-
@fflatorre rules are compatible, but we did many improvements since 5.5, so lots of false negatives have been fixed. If you were referencing whole rulesets you may also be getting new rules applied. If you do find any false positives, please report it in a separate issue. |
Beta Was this translation helpful? Give feedback.
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…