apply plugin: 'checkstyle' check.dependsOn 'checkstyle' task checkstyle(type: Checkstyle) { configFile file("${project.rootDir}/config/quality/checkstyle/checkstyle.xml") source 'src/main/java' include 'org/connectbot/**/*.java' exclude '**/gen/**' def configProps = ['proj.module.dir': projectDir.absolutePath] configProperties configProps classpath = files() }