We just added the PMD plugin to our Gradle build and it works just fine on on my developer computer but fails on our build server which is Bamboo.
The error message is
- What went wrong:
Execution failed for task ':pmdMain'.
java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
Gradle version and Java version are the same on both machines - "Gradle 2.7" and "1.8.0_60 (Oracle Corporation 25.60-b23)".
I've seen that some people had problems with a xml-apis-dependency but when I run "gradle dependencies" on my local machine there is no xml-apis-dependency.
Edit: Even though it "felt wrong", I've tried adding a dependency to xml-apis but with the same result.
Any ideas?
Regards Peter