Pmd plugin : java.lang.ClassNotFoundException

(Naresh L) #1

Hi All,

We are writing pmd custom rules using gradle. when we use toolVersion = “6.3.0” we are getting the ClassNotFoundException and without toolVersion property we are able to run the project.

Below is the build.gradle file.

apply plugin: ‘pmd’
pmd {
ruleSets = []
ruleSetFiles = rootProject.files(“src/main/resources/archruleset.xml”)
toolVersion = “6.3.0”

Could you please let me know what we are missing to run the project.

Thank you in Advance.

Best Regards,