須要用到插件,地址:git
https://github.com/jrudolph/sbt-dependency-graphgithub
1. 添加插件(請用最新的0.7.5)ui
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.7.5")
2. 在build.sbt添加配置插件
net.virtualvoid.sbt.graph.Plugin.graphSettings
3. 查看依賴code
$ sbt dependency-tree
或者get
sbt dependency-graph