From 89547c0d3300a07cd04a56638837b5cd9068be19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Cayuelas=20Ruiz?= Date: Thu, 9 Nov 2023 12:14:13 +0100 Subject: [PATCH] Update deprecated source detekt (#528) --- core/build.gradle.kts | 2 +- filesystem/build.gradle.kts | 2 +- gpt4all-kotlin/build.gradle.kts | 2 +- integrations/gcp/build.gradle.kts | 2 +- integrations/lucene/build.gradle.kts | 2 +- integrations/mlflow/build.gradle.kts | 2 +- integrations/opentelemetry/build.gradle.kts | 2 +- integrations/pdf/build.gradle.kts | 2 +- integrations/postgresql/build.gradle.kts | 2 +- integrations/sql/build.gradle.kts | 2 +- kotlin/build.gradle.kts | 2 +- openai/build.gradle.kts | 2 +- reasoning/build.gradle.kts | 2 +- tokenizer/build.gradle.kts | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/core/build.gradle.kts b/core/build.gradle.kts index 4db577d5c..6b643760b 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -30,7 +30,7 @@ java { detekt { toolVersion = "1.23.1" - source = files("src/commonMain/kotlin", "src/jvmMain/kotlin") + source.setFrom(files("src/commonMain/kotlin", "src/jvmMain/kotlin")) config.setFrom("../config/detekt/detekt.yml") autoCorrect = true } diff --git a/filesystem/build.gradle.kts b/filesystem/build.gradle.kts index c2ced941d..2a1a6c412 100644 --- a/filesystem/build.gradle.kts +++ b/filesystem/build.gradle.kts @@ -11,7 +11,7 @@ dependencies { detektPlugins(project(":detekt-rules")) } detekt { toolVersion = "1.23.1" - source = files("src/commonMain/kotlin", "src/jvmMain/kotlin") + source.setFrom(files("src/commonMain/kotlin", "src/jvmMain/kotlin")) config.setFrom("../config/detekt/detekt.yml") autoCorrect = true } diff --git a/gpt4all-kotlin/build.gradle.kts b/gpt4all-kotlin/build.gradle.kts index 6a969980a..f81c495e6 100644 --- a/gpt4all-kotlin/build.gradle.kts +++ b/gpt4all-kotlin/build.gradle.kts @@ -20,7 +20,7 @@ java { detekt { toolVersion = "1.23.1" - source = files("src/commonMain/kotlin", "src/jvmMain/kotlin") + source.setFrom(files("src/commonMain/kotlin", "src/jvmMain/kotlin")) config.setFrom("../config/detekt/detekt.yml") autoCorrect = true } diff --git a/integrations/gcp/build.gradle.kts b/integrations/gcp/build.gradle.kts index 3c199d1a9..917f463d4 100644 --- a/integrations/gcp/build.gradle.kts +++ b/integrations/gcp/build.gradle.kts @@ -11,7 +11,7 @@ dependencies { detektPlugins(project(":detekt-rules")) } detekt { toolVersion = "1.23.1" - source = files("src/commonMain/kotlin", "src/jvmMain/kotlin") + source.setFrom(files("src/commonMain/kotlin", "src/jvmMain/kotlin")) config.setFrom("../../config/detekt/detekt.yml") autoCorrect = true } diff --git a/integrations/lucene/build.gradle.kts b/integrations/lucene/build.gradle.kts index 1a6f9b961..d96f81ca6 100644 --- a/integrations/lucene/build.gradle.kts +++ b/integrations/lucene/build.gradle.kts @@ -18,7 +18,7 @@ java { detekt { toolVersion = "1.23.1" - source = files("src/main/kotlin") + source.setFrom(files("src/main/kotlin")) config.setFrom("../../config/detekt/detekt.yml") autoCorrect = true } diff --git a/integrations/mlflow/build.gradle.kts b/integrations/mlflow/build.gradle.kts index 7aa655f29..b111fe3ec 100644 --- a/integrations/mlflow/build.gradle.kts +++ b/integrations/mlflow/build.gradle.kts @@ -11,7 +11,7 @@ dependencies { detektPlugins(project(":detekt-rules")) } detekt { toolVersion = "1.23.1" - source = files("src/commonMain/kotlin", "src/jvmMain/kotlin") + source.setFrom(files("src/commonMain/kotlin", "src/jvmMain/kotlin")) config.setFrom("../../config/detekt/detekt.yml") autoCorrect = true } diff --git a/integrations/opentelemetry/build.gradle.kts b/integrations/opentelemetry/build.gradle.kts index aae9caa41..491fb7860 100644 --- a/integrations/opentelemetry/build.gradle.kts +++ b/integrations/opentelemetry/build.gradle.kts @@ -19,7 +19,7 @@ java { detekt { toolVersion = "1.23.1" - source = files("src/main/kotlin") + source.setFrom(files("src/main/kotlin")) config.setFrom("../../config/detekt/detekt.yml") autoCorrect = true } diff --git a/integrations/pdf/build.gradle.kts b/integrations/pdf/build.gradle.kts index fd49a4a85..09bfd4ef9 100644 --- a/integrations/pdf/build.gradle.kts +++ b/integrations/pdf/build.gradle.kts @@ -17,7 +17,7 @@ java { detekt { toolVersion = "1.23.1" - source = files("src/main/kotlin") + source.setFrom(files("src/main/kotlin")) config.setFrom("../../config/detekt/detekt.yml") autoCorrect = true } diff --git a/integrations/postgresql/build.gradle.kts b/integrations/postgresql/build.gradle.kts index 91759b10f..c0ce2dcc5 100644 --- a/integrations/postgresql/build.gradle.kts +++ b/integrations/postgresql/build.gradle.kts @@ -18,7 +18,7 @@ java { detekt { toolVersion = "1.23.1" - source = files("src/main/kotlin") + source.setFrom(files("src/main/kotlin")) config.setFrom("../../config/detekt/detekt.yml") autoCorrect = true } diff --git a/integrations/sql/build.gradle.kts b/integrations/sql/build.gradle.kts index 128751c42..dd32f8d0a 100644 --- a/integrations/sql/build.gradle.kts +++ b/integrations/sql/build.gradle.kts @@ -17,7 +17,7 @@ java { detekt { toolVersion = "1.23.1" - source = files("src/main/kotlin") + source.setFrom(files("src/main/kotlin")) config.setFrom("../../config/detekt/detekt.yml") autoCorrect = true } diff --git a/kotlin/build.gradle.kts b/kotlin/build.gradle.kts index 0b0d2e196..42afef530 100644 --- a/kotlin/build.gradle.kts +++ b/kotlin/build.gradle.kts @@ -18,7 +18,7 @@ dependencies { detektPlugins(project(":detekt-rules")) } detekt { toolVersion = "1.23.1" - source = files("src/commonMain/kotlin", "src/jvmMain/kotlin") + source.setFrom(files("src/commonMain/kotlin", "src/jvmMain/kotlin")) config.setFrom("../config/detekt/detekt.yml") autoCorrect = true } diff --git a/openai/build.gradle.kts b/openai/build.gradle.kts index 7e846e525..ea9638bc5 100644 --- a/openai/build.gradle.kts +++ b/openai/build.gradle.kts @@ -26,7 +26,7 @@ java { detekt { toolVersion = "1.23.1" - source = files("src/commonMain/kotlin", "src/jvmMain/kotlin") + source.setFrom(files("src/commonMain/kotlin", "src/jvmMain/kotlin")) config.setFrom("../config/detekt/detekt.yml") autoCorrect = true } diff --git a/reasoning/build.gradle.kts b/reasoning/build.gradle.kts index 84a10a426..1184bea3e 100644 --- a/reasoning/build.gradle.kts +++ b/reasoning/build.gradle.kts @@ -26,7 +26,7 @@ dependencies { detektPlugins(project(":detekt-rules")) } detekt { toolVersion = "1.23.1" - source = files("src/commonMain/kotlin", "src/jvmMain/kotlin") + source.setFrom(files("src/commonMain/kotlin", "src/jvmMain/kotlin")) config.setFrom("../config/detekt/detekt.yml") autoCorrect = true } diff --git a/tokenizer/build.gradle.kts b/tokenizer/build.gradle.kts index a5e71ff72..3e117e2de 100644 --- a/tokenizer/build.gradle.kts +++ b/tokenizer/build.gradle.kts @@ -20,7 +20,7 @@ java { detekt { toolVersion = "1.23.1" - source = files("src/commonMain/kotlin", "src/jvmMain/kotlin") + source.setFrom(files("src/commonMain/kotlin", "src/jvmMain/kotlin")) config.setFrom("../config/detekt/detekt.yml") autoCorrect = true }