Last active
October 30, 2019 13:03
-
-
Save alistairsykes/0ef606f1e4af0525cf42132f382fe270 to your computer and use it in GitHub Desktop.
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
configurations { | |
// ... | |
xmlchecker | |
} | |
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 = 'uk.co.brightec.xmlcheck.MainKt' | |
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