depgraph-maven-plugin
depgraph-maven-plugin copied to clipboard
targetIncludes 2 types of transitives
I can use -DtargetIncludes=:jackson-dataformat-yaml to show all uses of this dependency in my project.
I don't want to see the entire hierarchy of modules (all the modules that depend on the module that depends on :jackson-dataformat-yaml), so I add -DtransitiveExcludes=*
But now the problem is I only see direct dependencies on :jackson-dataformat-yaml If a module depends on a third-party dependency, and that dependency depends on :jackson-dataformat-yaml, it doesn't show.
How can I show all AND only the direct dependents of an artefact?
This is not possible to achieve with the current filtering options. This would require some kind of option to "cut off" the transitive dependencies of a certain artifact, i.e. something like ˋtransitiveExcludesˋ but with keeping the matching artifacts in the graph.