I upgraded to 5.2.0, and now I get “java.lang.IllegalArgumentException: Unknown Language ‘java’ for Rule JumbledIncrementer, supported Languages are” [empty].
PMD 5 renamed the ‘java’ ruleset to ‘java-basic’. Perhaps ‘java’ is no longer supported as of 5.2.0, and you have to update the references in your ruleset file. The CNFE indicates that there is some work for us to do to be compatible with 5.2.0. I’ve raised GRADLE-3186 for this. Thanks for the report.
At first sight, I don’t think that the IllegalArgumentException is something that can be fixed on Gradle’s side. However, at this point this is just a guess.
‘pmd.toolVersion = ‘5.2.1’’ will add the all-in-one ‘net.sourceforge.pmd:pmd:5.2.1’ rather than ‘-core’ and ‘-java’, and it looks like the bug wasn’t fixed for that distribution.