From b8758323c723dadf935be77187fa87cc9d482e23 Mon Sep 17 00:00:00 2001 From: "jan.kozlowski" Date: Fri, 13 Sep 2024 14:12:43 +0200 Subject: [PATCH] update detekt 1.23.6 --- build.gradle | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 2786b5a74..a8b764ba3 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ plugins { id 'org.jetbrains.kotlin.plugin.allopen' version '1.9.23' id "org.jlleitschuh.gradle.ktlint" version "10.2.1" id "org.jlleitschuh.gradle.ktlint-idea" version "10.2.0" - id "io.gitlab.arturbosch.detekt" version "1.18.0" + id "io.gitlab.arturbosch.detekt" version "1.23.6" id 'io.github.gradle-nexus.publish-plugin' version '1.0.0' id 'org.springframework.boot' version '3.3.2' apply false } @@ -66,6 +66,13 @@ allprojects { } } +configurations.matching { it.name == "detekt" }.all { + resolutionStrategy.eachDependency { + if (requested.group == "org.jetbrains.kotlin") { + useVersion(io.gitlab.arturbosch.detekt.getSupportedKotlinVersion()) + } + } +} nexusPublishing { repositories { @@ -177,7 +184,7 @@ subprojects { } detekt { - toolVersion = "1.18.0" + toolVersion = "1.23.6" input = files("src/main/kotlin", "src/test/kotlin") config = files("$rootDir/config/detekt/detekt.yml") buildUponDefaultConfig = true