vanniktech / gradle-dependency-graph-generator-plugin

Gradle plugin that generates dependency graphs from your project.
http://vanniktech.com
Apache License 2.0
1.54k stars 99 forks source link

Group artifacts by groupId #238

Open vgheo opened 11 months ago

vgheo commented 11 months ago

In large projects, it may be useful to present artifacts with the same groupId into a graphviz cluster.

As configuration API I think this could be implemented by adding a property 'clusterId' on each node, that would be used as cluster name in the dot output.

eg - config

dependencyNode = { node, dependency -> node.add( ClusterId.of(dependency.getModuleGroup()) }

output

subgraph cluster_comexample {
"comexamplea"
"comexampleb"
}