be5ba6443a
convert store to java, #83
33 lines
633 B
Groovy
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()
|
|
}
|