depgraph-maven-plugin icon indicating copy to clipboard operation
depgraph-maven-plugin copied to clipboard

targetIncludes 2 types of transitives

Open delanym opened this issue 2 years ago • 1 comments

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?

delanym avatar Mar 30 '22 13:03 delanym

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.

ferstl avatar Mar 30 '22 21:03 ferstl