Skip to content

Incorrect gradle project analysis on multi-module projects when subprojects have the same name #151

@ologe

Description

@ologe

I'm playing with Kover (v0.5.0) these days and I noticed a weird behaviour on multi-module projects with a nested hierarchy. When there are submodules with the same name, Kover often analyses the wrong project.

Given the following project structure:

:feature
  :first
  :another-nesting
     :first
     :second
  :nested
     :first
     :second

./gradlew :feature:first:koverHtmlReport is analyzing :feature:nested:first

Screenshot 2022-03-11 at 11 53 00

./gradlew :feature:nested:first:koverHtmlReport is correct

Screenshot 2022-03-11 at 11 53 30

./gradlew :feature:another-nesting:first:koverHtmlReport is analyzing again :feature:nested:first

Screenshot 2022-03-11 at 11 53 53


Zero configuration from my side, just applied the plugin.

Downgraded to v0.4.4 and everything works fine.

Everything should be reproducible in this repo https://github.com/ologe/kover-testing

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions