chore: rootでテストを実行することで全ての子がテストを実行するように

This commit is contained in:
usbharu 2024-12-19 18:53:22 +09:00
parent 4e4cada0b7
commit 56577c9137
Signed by: usbharu
GPG Key ID: 95CBCF7046307B77
2 changed files with 12 additions and 6 deletions

3
.gitignore vendored
View File

@ -42,7 +42,6 @@ out/
/tomcat/
/tomcat-e2e/
/e2eTest.log
/files/
*.log
/hideout-core/files/
@ -51,4 +50,4 @@ out/
/http-client.private.env.json
**/logs/
/hideout-mastodon/logs/
/hideout-mastodon/files/
**/files/

View File

@ -49,7 +49,11 @@ subprojects {
}
dependencies {
testImplementation(kotlin("test"))
}
kotlin {
jvmToolchain(21)
}
}
@ -57,6 +61,12 @@ tasks {
register("run") {
dependsOn(gradle.includedBuild("hideout-core").task(":run"))
}
getByName("test") {
dependsOn(subprojects.mapNotNull { it.tasks.findByName("test") })
}
withType<io.gitlab.arturbosch.detekt.Detekt> {
exclude("**/generated/**")
exclude("build/")
@ -70,9 +80,6 @@ tasks {
}
}
kotlin {
jvmToolchain(21)
}
}
dependencies {