diff --git a/build.gradle.kts b/build.gradle.kts index b1db9f9..007af68 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -80,20 +80,18 @@ configurations.configureEach { } } -allprojects { - detekt { - source.setFrom(files("src/")) - config.setFrom(files("${project.rootDir}/detekt.yml")) - buildUponDefaultConfig = true - allRules = true - } - tasks.withType().configureEach { - reports { - html.outputLocation.set(file("build/reports/detekt/${project.name}.html")) - } +detekt { + source.setFrom(files("src/")) + config.setFrom(files("${project.rootDir}/detekt.yml")) + buildUponDefaultConfig = true + allRules = true +} +tasks.withType().configureEach { + reports { + html.outputLocation.set(file("build/reports/detekt/${project.name}.html")) } - dependencies.add("detektPlugins", libs.detektFormatting) } +dependencies.add("detektPlugins", libs.detektFormatting) fun Project.envOrProp(name: String): String { return providers.environmentVariable(name).orNull diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7a1d9b8..a4caaaa 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -kotlin = "2.0.0-Beta1" +kotlin = "2.0.0-Beta2" spring-boot = "3.1.5" spring-dependencyManagement = "1.1.4" jib = "3.4.0"