Created
August 14, 2016 19:02
-
-
Save alpargabos/be6debd43c6003b195afcd57ebb47e61 to your computer and use it in GitHub Desktop.
pmd gradle task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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