apply plugin: 'pmd' tasks.withType(Pmd) { ignoreFailures = true reports { xml.enabled = true html.enabled = true } }