mirror of https://github.com/usbharu/Hideout.git
chore: owlでdetektが動作するように
This commit is contained in:
parent
26b3bdd721
commit
1a2142e83b
|
@ -1,5 +1,3 @@
|
||||||
import dev.usbharu.hideout.core.infrastructure.exposedrepository.UserDetails.password
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2024 usbharu
|
* Copyright (C) 2024 usbharu
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import dev.usbharu.hideout.core.infrastructure.exposedrepository.Instance.version
|
|
||||||
import kotlinx.kover.gradle.plugin.dsl.CoverageUnit
|
import kotlinx.kover.gradle.plugin.dsl.CoverageUnit
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
|
|
|
@ -32,6 +32,7 @@ subprojects {
|
||||||
plugin("org.jetbrains.kotlin.jvm")
|
plugin("org.jetbrains.kotlin.jvm")
|
||||||
plugin("maven-publish")
|
plugin("maven-publish")
|
||||||
plugin(rootProject.libs.plugins.kover.get().pluginId)
|
plugin(rootProject.libs.plugins.kover.get().pluginId)
|
||||||
|
plugin(rootProject.libs.plugins.detekt.get().pluginId)
|
||||||
}
|
}
|
||||||
kotlin {
|
kotlin {
|
||||||
jvmToolchain(21)
|
jvmToolchain(21)
|
||||||
|
@ -40,9 +41,19 @@ subprojects {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("org.slf4j:slf4j-api:2.0.15")
|
implementation("org.slf4j:slf4j-api:2.0.15")
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter:5.10.3")
|
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 {
|
project.gradle.taskGraph.whenReady {
|
||||||
if (this.hasTask(":koverGenerateArtifact")) {
|
if (this.hasTask(":koverGenerateArtifact")) {
|
||||||
val task = this.allTasks.find { println(it.name);it.name == "test" }
|
val task = this.allTasks.find { println(it.name);it.name == "test" }
|
||||||
|
@ -94,7 +105,13 @@ dependencies {
|
||||||
kover(project(":owl-producer:owl-producer-embedded"))
|
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 {
|
project.gradle.taskGraph.whenReady {
|
||||||
if (this.hasTask(":koverGenerateArtifact")) {
|
if (this.hasTask(":koverGenerateArtifact")) {
|
||||||
|
|
Loading…
Reference in New Issue