Arjan van Wieringen
04/12/2024, 6:48 PMincludeBuilds
. In everyone of those builds I have multiple subprojects with kotest
as testing framework. I can get the test
task to pop-up at the root-project level in Gradle. To run the tests from the commandline I need to specifically call ./gradlew my-project:sub-project:test
. My project setup is pretty bare-bones and I never had this before. The only change using composite builds.
My settings.gradle.kts of a build:
rootProject.name = "asset-mapper"
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
from(files("../../gradle/libs.versions.toml"))
}
}
}
include("data")
include("core")
include("server")
include("codegen")
Vampire
04/12/2024, 6:51 PMVampire
04/12/2024, 6:52 PMtest
without a path (without any :
), then all tasks with name test
in all subprojects that have such a task are executedVampire
04/12/2024, 6:52 PMVampire
04/12/2024, 6:52 PMVampire
04/12/2024, 6:52 PMVampire
04/12/2024, 6:53 PMArjan van Wieringen
04/12/2024, 6:57 PM./gradlew test
to work. But I expected to see test under the asset-mapper
tasks. When I do a project without composite builds i see verification/test
under the root project. Now I don't see it under the rootproject of the included build (asset-mapper).
I didnt know if this wasn't Kotlin. I am understand the reasoning of keeping the channel clean, but it is a little bit annoying to have everything everywhere marked as Not Kotlin. Sometimes you just don't know. I am also part of the Gradle Slack community, but when i post there I get 0 responses....Arjan van Wieringen
04/12/2024, 7:02 PM./gradlew -p modules/asset-mapper test
. But I can not run all asset-mapper
test tasks from the IntelliJ screen. So maybe it is an IntellliJ issue.Vampire
04/12/2024, 7:14 PM-p
you are "standaloning" the included build, and the call test
to run it everywhere logic works again.
But as long as it is treated as included build, you cannot.
And the tree in the tool window is from this usage as included build.
I doubt JetBrains can or want to change anything there but who knows. 🙂Vampire
04/12/2024, 7:14 PMArjan van Wieringen
04/12/2024, 7:17 PMArjan van Wieringen
04/12/2024, 7:18 PM