/dependency-graph-plugin-task

Gradle plugin that generates module dependency reports. "Android Module 依赖关系的可视化实现"

dependency-graph-plugin-task

Gradle plugin that generates module dependency reports

Visual implementation of Module dependencies

demo

image

Usage

  1. Copy projectDependencyGraph.gradle file to the root directory of the project
  2. Add plugin to build.gradle in your app
apply from: "${project.rootProject.file('projectDependencyGraph.gradle')}"
  1. run
./gradlew projectDependencyGraph
  1. Project module dependency graph created at build/reports/dependency-graph/project.dot
  • prview with markdown:

Copy the contents of project.dot to the online tool preview https://mermaid-js.github.io/mermaid-live-editor/ mermaid-diagram-20220426112122

  • prview with graphviz:

Using graphviz to generate local beautiful diagram, if not installed the local environment, Copy the contents of project_digraph.dot to the online tool preview http://dreampuf.github.io/GraphvizOnline/

graphviz