Browse Source

For #4326: Update detekt and ktlint dependenies

master
Sawyer Blatz 2 years ago
committed by Jeff Boek
parent
commit
d9c2c0d16a
  1. 7
      build.gradle

7
build.gradle

@ -18,7 +18,7 @@ buildscript {
}
plugins {
id("io.gitlab.arturbosch.detekt").version("1.0.0.RC9.2")
id("io.gitlab.arturbosch.detekt").version("1.0.0-RC16")
}
allprojects {
@ -36,6 +36,7 @@ allprojects {
jcenter()
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.allWarningsAsErrors = true
kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlin.Experimental", "-Xskip-runtime-version-check"]
}
@ -47,7 +48,7 @@ task clean(type: Delete) {
detekt {
// The version number is duplicated, please refer to plugins block for more details
version = "1.0.0.RC9.2"
version = "1.0.0-RC16"
input = files("$projectDir/app/src", "$projectDir/architecture/src")
config = files("$projectDir/config/detekt.yml")
filters = ".*test.*,.*/resources/.*,.*/tmp/.*"
@ -65,7 +66,7 @@ configurations {
}
dependencies {
ktlint "com.github.shyiko:ktlint:0.31.0"
ktlint "com.pinterest:ktlint:0.34.2"
}
task ktlint(type: JavaExec, group: "verification") {

Loading…
Cancel
Save