From e3d24719573142facafa98d98ab99381417b6f5e Mon Sep 17 00:00:00 2001 From: woxtu Date: Fri, 25 Aug 2023 05:10:54 +0900 Subject: [PATCH] Replace the deprecated setter for the detekt configuration --- .../droidkaigi/confsched2023/primitive/AndroidGradleDsl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-logic/src/main/kotlin/io/github/droidkaigi/confsched2023/primitive/AndroidGradleDsl.kt b/build-logic/src/main/kotlin/io/github/droidkaigi/confsched2023/primitive/AndroidGradleDsl.kt index 986a480fa..b1d793fa3 100644 --- a/build-logic/src/main/kotlin/io/github/droidkaigi/confsched2023/primitive/AndroidGradleDsl.kt +++ b/build-logic/src/main/kotlin/io/github/droidkaigi/confsched2023/primitive/AndroidGradleDsl.kt @@ -73,7 +73,7 @@ fun Project.setupDetekt(extension: DetektExtension) { // parallel processing parallel = true // detekt configuration file - config = files("${project.rootDir}/config/detekt/detekt.yml") + config.setFrom("${project.rootDir}/config/detekt/detekt.yml") // baseline configuration file baseline = file("${project.rootDir}/config/detekt/baseline.xml") // apply your own configuration file on top of the default settings