From 874ef8c57cd551e528b0cb298988472718c776d4 Mon Sep 17 00:00:00 2001 From: Yang Date: Sat, 16 Dec 2023 01:46:32 +1100 Subject: [PATCH] Kotlin 2.0.0-Beta2. --- build.gradle.kts | 22 ++++++++++------------ gradle/libs.versions.toml | 2 +- 2 files changed, 11 insertions(+), 13 deletions(-) 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"