Store/gradle/checkstyle.gradle
Brian Plummer be5ba6443a convert store to java, #83 (#85)
convert store to java, #83
2017-01-28 20:52:55 -05:00

33 lines
633 B
Groovy

apply plugin: 'checkstyle'
assemble.dependsOn('lint')
check.dependsOn('checkstyle')
configurations {
checksytleOverride
}
dependencies {
checksytleOverride('com.puppycrawl.tools:checkstyle:7.1.1')
}
tasks.withType(Checkstyle) {
checkstyleClasspath = project.configurations.checksytleOverride
}
checkstyle {
configFile file("${project.rootDir}/checkstyle-ruleset.xml")
}
task checkstyle(type: Checkstyle) {
configFile file("${project.rootDir}/checkstyle-ruleset.xml")
source 'src'
include '**/*.java'
exclude '**/gen/**'
reports {
xml.enabled = true
}
classpath = files()
}