Enable checkstyle for android
The checkstyle gradle plugin works only for java libraries. Android requires additional configuration.
This commit is contained in:
parent
eba0b18689
commit
78ce7b659b
1 changed files with 10 additions and 0 deletions
|
@ -101,6 +101,16 @@ dependencies {
|
||||||
androidTestImplementation 'androidx.work:work-testing:2.7.1'
|
androidTestImplementation 'androidx.work:work-testing:2.7.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check.dependsOn 'checkstyle'
|
||||||
|
|
||||||
|
task checkstyle(type: Checkstyle) {
|
||||||
|
source 'src'
|
||||||
|
include '**/*.java'
|
||||||
|
exclude '**/gen/**'
|
||||||
|
|
||||||
|
classpath = files()
|
||||||
|
}
|
||||||
|
|
||||||
task generateProfiles(type: Exec) {
|
task generateProfiles(type: Exec) {
|
||||||
commandLine = "../misc/scripts/generate_profile_variants.sh"
|
commandLine = "../misc/scripts/generate_profile_variants.sh"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue