Skip to content

Instantly share code, notes, and snippets.

@alpargabos
Created August 14, 2016 19:02
Show Gist options
  • Save alpargabos/be6debd43c6003b195afcd57ebb47e61 to your computer and use it in GitHub Desktop.
Save alpargabos/be6debd43c6003b195afcd57ebb47e61 to your computer and use it in GitHub Desktop.
pmd gradle task
apply plugin: 'pmd'
// Add pmd
check.dependsOn 'pmd'
task pmd(type: Pmd) {
ignoreFailures = false
ruleSetFiles = files("../config/quality/pmd/pmd-ruleset.xml")
source 'src'
include '**/*.java'
exclude '**/gen/**'
reports {
xml.enabled = false
html.enabled = true
html {
destination "$project.buildDir/reports/pmd/pmd.html"
}
}
pmd { toolVersion = '5.1.3' }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment