I have
pmd {
toolVersion = '5.0.5'
}
but in generate xml report I see
<pmd version="5.0.0" timestamp="2013-10-28T11:07:24.823">
I have
pmd {
toolVersion = '5.0.5'
}
but in generate xml report I see
<pmd version="5.0.0" timestamp="2013-10-28T11:07:24.823">
I just tried this out with Gradle 1.8 and it generated the correct version for me. Here’s my example code:
apply plugin: 'java'
apply plugin: 'pmd'
repositories {
mavenCentral()
}
pmd {
toolVersion = '5.0.5'
}
What’s the Gradle version you are using? Does your build potentially set the “toolVersion” property somewhere else to 5.0.0?
Ou… One cannot be so stupid Sorry, that was exactly my problem. I had toolVersion set to 5.0.0 just 10 lines down