Skip to content

Commit

Permalink
Add checkStyle tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
voidzcy committed Mar 16, 2020
1 parent c9956a2 commit f7c160c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions android-interop-testing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,19 @@ dependencies {
androidTestImplementation 'androidx.test:runner:1.1.0-alpha1'
}

// Checkstyle doesn't run automatically with android
task checkStyleMain(type: Checkstyle) {
source 'src/main/java'
include '**/*.java'
classpath = files()
}

task checkStyleTest(type: Checkstyle) {
source 'src/androidTest/java'
include '**/*.java'
classpath = files()
}

project.tasks['check'].dependsOn checkStyleMain, checkStyleTest

configureProtoCompilation()

0 comments on commit f7c160c

Please sign in to comment.