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