diff --git a/build-logic/build.gradle.kts b/build-logic/build.gradle.kts index 0a45535..9d548f0 100644 --- a/build-logic/build.gradle.kts +++ b/build-logic/build.gradle.kts @@ -26,8 +26,8 @@ tasks.withType().configureEach { } detekt { - source = files("src/") - config = files("../detekt.yml") + source.from(files("src/")) + config.from(files("../detekt.yml")) buildUponDefaultConfig = true allRules = true parallel = true diff --git a/build-logic/src/main/kotlin/io/github/reactivecircus/cache4k/buildlogic/convention/ConventionPlugin.kt b/build-logic/src/main/kotlin/io/github/reactivecircus/cache4k/buildlogic/convention/ConventionPlugin.kt index ec0f1db..b61d9cc 100644 --- a/build-logic/src/main/kotlin/io/github/reactivecircus/cache4k/buildlogic/convention/ConventionPlugin.kt +++ b/build-logic/src/main/kotlin/io/github/reactivecircus/cache4k/buildlogic/convention/ConventionPlugin.kt @@ -76,8 +76,8 @@ private fun Project.configureSubproject() { dependencies.add("detektPlugins", the().plugin.detektFormatting) plugins.withType { extensions.configure { - source = files("src/") - config = files("${project.rootDir}/detekt.yml") + source.from(files("src/")) + config.from(files("${project.rootDir}/detekt.yml")) buildUponDefaultConfig = true allRules = true parallel = true