Closed gmazzo closed 3 weeks ago
Thanks for report! Unfortunately, Composite Builds are not supported at the moment, there are a number of technical limitations why it does not work in its current form.
A task has already been opened to design support for such types of builds.
Closed as a duplicate of https://github.com/Kotlin/kotlinx-kover/issues/487
What is your use-case and why do you need this feature?
kover
integrates with Gradle's dependency resolution system by exposing akover
configuration to aggregate projectsAs
includedBuild
s by convention exposes a dependency coordinate (implicitdependencySubstitution
), declaring it as akover
dependency is expected to aggregate the child build into the main report.This setup does not break the build, the correct
koverArtifact[TOTAL]
variant is resolved for the included build, but the report does not aggregate it. https://scans.gradle.com/s/2nb3nedv4ntsm/dependencies?focusedDependency=WzAsMCwyLFswLDAsWzJdXV0&toggled=W1swXSxbMCwwXV0Running
./gradlew :koverHtmlReport
produces a report only containing main build modules:While running
./gradlew :build-logic:koverHtmlReport
, is correctly computing thebuild-logic
modules (some now not aggregated in the root one):Describe the solution you'd like Included Builds should be transparently resolved as any other
kover
dependency and included in the aggregated report. Variants are there, it's seems to a matter of the internal plugin resolution strategy.