Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
configurations {
// ...
dependencies {
// ...
xmlchecker fileTree(dir: "$project.rootDir/.../xmlchecker/libs", include: ['*.jar'])
check.dependsOn 'xmlchecker'
// ...
task xmlchecker(type: JavaExec, group: 'verification') {
description = 'Check XML for code smells.'
classpath = configurations.xmlchecker
main = ''
args "$projectDir/src/main/res/layout"
args '--no-fail-on-empty'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.