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/
/tomcat-e2e/ /tomcat-e2e/
/e2eTest.log /e2eTest.log
/files/
*.log *.log
/hideout-core/files/ /hideout-core/files/
@ -51,4 +50,4 @@ out/
/http-client.private.env.json /http-client.private.env.json
**/logs/ **/logs/
/hideout-mastodon/logs/ /hideout-mastodon/logs/
/hideout-mastodon/files/ **/files/

View File

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