From 1a2142e83b2b3101760d191f74c9e448068caed5 Mon Sep 17 00:00:00 2001 From: usbharu Date: Tue, 17 Sep 2024 21:53:54 +0900 Subject: [PATCH] =?UTF-8?q?chore:=E3=80=80owl=E3=81=A7detekt=E3=81=8C?= =?UTF-8?q?=E5=8B=95=E4=BD=9C=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle.kts | 2 -- hideout-activitypub/build.gradle.kts | 1 - owl/build.gradle.kts | 21 +++++++++++++++++++-- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 52f8a2b7..ee19d44a 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,3 @@ -import dev.usbharu.hideout.core.infrastructure.exposedrepository.UserDetails.password - /* * Copyright (C) 2024 usbharu * diff --git a/hideout-activitypub/build.gradle.kts b/hideout-activitypub/build.gradle.kts index 6a2d223a..8c14e9a6 100644 --- a/hideout-activitypub/build.gradle.kts +++ b/hideout-activitypub/build.gradle.kts @@ -1,4 +1,3 @@ -import dev.usbharu.hideout.core.infrastructure.exposedrepository.Instance.version import kotlinx.kover.gradle.plugin.dsl.CoverageUnit plugins { diff --git a/owl/build.gradle.kts b/owl/build.gradle.kts index 066d8b10..5ea6ae9e 100644 --- a/owl/build.gradle.kts +++ b/owl/build.gradle.kts @@ -32,6 +32,7 @@ subprojects { plugin("org.jetbrains.kotlin.jvm") plugin("maven-publish") plugin(rootProject.libs.plugins.kover.get().pluginId) + plugin(rootProject.libs.plugins.detekt.get().pluginId) } kotlin { jvmToolchain(21) @@ -40,9 +41,19 @@ subprojects { dependencies { implementation("org.slf4j:slf4j-api:2.0.15") testImplementation("org.junit.jupiter:junit-jupiter:5.10.3") - + detektPlugins(rootProject.libs.detekt.formatting) } + + detekt { + parallel = true + config.setFrom(files("$rootDir/../detekt.yml")) + buildUponDefaultConfig = true + basePath = "${projectDir}/src/main/kotlin" + autoCorrect = true + } + + project.gradle.taskGraph.whenReady { if (this.hasTask(":koverGenerateArtifact")) { val task = this.allTasks.find { println(it.name);it.name == "test" } @@ -94,7 +105,13 @@ dependencies { kover(project(":owl-producer:owl-producer-embedded")) } - +detekt { + parallel = true + config.setFrom(files("../detekt.yml")) + buildUponDefaultConfig = true + basePath = "${projectDir}/src/main/kotlin" + autoCorrect = true +} project.gradle.taskGraph.whenReady { if (this.hasTask(":koverGenerateArtifact")) {