sbt-dependency-graph icon indicating copy to clipboard operation
sbt-dependency-graph copied to clipboard

Include "provided" dependencies as well in the graph.

Open mgttlinger opened this issue 9 years ago • 5 comments

Dependencies marked as "provided" are needed to compile and needed at runtime as well but need to be provided at deployment rather than being packaged with the code depending on them.

It would be very nice to see those dependencies for transitive dependencies to check if you need to provide them or if they are already provided by an dependency you have currently. This process would be greatly streamlined if they would show up in the dependency graph. Ideally they would be marked/highlighted depending on them being currently missing in the dependency classpath.

mgttlinger avatar May 09 '16 07:05 mgttlinger

When it comes to finding library collisions, having provided dependency in the tree is essential.

JAlexoid avatar Jul 22 '16 15:07 JAlexoid

As noted in #124 - would not something like ./sbt provided:dependencyTree work?

bzz avatar Sep 18 '17 10:09 bzz

@bzz it does work. It would be nice, though, to provide a complete view even in the default case.

jrudolph avatar Sep 18 '17 11:09 jrudolph

Some way to get the complete graph for all configurations would be nice

lokkju avatar Feb 09 '18 15:02 lokkju

FWIW none of the sbt provided:X commands work for me in sbt 1.4 -- they all say "no such setting/task"

solarmosaic-kflorence avatar Jan 19 '21 23:01 solarmosaic-kflorence