Dependency edges are duplicated.
hisakaz0 opened this issue Β· comments
π Describe the bug
When createModuleGraph
task is executed in this project, there are duplicated dependency edges.
Maybe when a gradle module has multi sourceSets, this problem occurred .
β οΈ Current behavior
A dependency(for examplealpha --> beta
) edges are duplicated.
β Expected behavior
A dependency represents only one edge.
π£ Steps to reproduce
- clone this repository https://github.com/hisakaz0/conference-app-2023/
- switch branch to
mod-graph
. ./gradlew createModuleGraph
π· Screenshots
π± Tech info
- Device:
- OS: macOS 13.5.1 (22G90)
- Library/App version: 0.4.0
At the same time, I fix this issue.
The fixing is this.
https://github.com/hisakaz0/module-graph/tree/fix-duplicate-edge
steps to validate
- clone https://github.com/hisakaz0/conference-app-2023/
- switch branch to
repro-duplicate-edges
- install submodule
cd module-graph
./gradlew build publishToMavenLocal
cd ..
./gradlew createModuleGraph