How to see dependency tree in sbt?

后端 未结 5 2072
余生分开走
余生分开走 2020-12-07 15:43

I am trying to inspect the SBT dependency tree as described in the documentation:

sbt inspect tree clean

But I get this error:



        
5条回答
  •  暖寄归人
    2020-12-07 15:56

    If you want to actually view the library dependencies (as you would with Maven) rather than the task dependencies (which is what inspect tree displays), then you'll want to use the sbt-dependency-graph plugin.

    Add the following to your project/plugins.sbt (or the global plugins.sbt).

    addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.9.2")
    

    Then you have access to the dependencyTree command, and others.

提交回复
热议问题