iurysza / module-graph

A Gradle Plugin for visualizing your project's structure, powered by mermaidjs

Home Page:https://plugins.gradle.org/plugin/dev.iurysouza.modulegraph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. clone this repository https://github.com/hisakaz0/conference-app-2023/
  2. switch branch to mod-graph.
  3. ./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

  1. clone https://github.com/hisakaz0/conference-app-2023/
  2. switch branch to repro-duplicate-edges
  3. install submodule
  4. cd module-graph
  5. ./gradlew build publishToMavenLocal
  6. cd ..
  7. ./gradlew createModuleGraph