Merge pull request #3464 from wb9688/checkstyle-debug-only

Run Checkstyle only on debug builds
This commit is contained in:
Tobias Groza 2020-04-20 20:22:12 +02:00 committed by GitHub
commit fc1fc6842b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,12 +127,14 @@ tasks.withType(Checkstyle).each {
}
}
preBuild.dependsOn runCheckstyle
afterEvaluate {
preDebugBuild.dependsOn runCheckstyle
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "com.puppycrawl.tools:checkstyle:${checkstyleVersion}"
debugImplementation "com.puppycrawl.tools:checkstyle:${checkstyleVersion}"
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation "android.arch.persistence.room:testing:1.1.1"