sbt, the interactive build tool
Go to file
Johannes Rudolph d3d4bf9681 update git path 2011-11-15 16:11:44 +01:00
src/main/scala/net/virtualvoid/sbt/graph initial version 2011-11-15 16:06:02 +01:00
.gitignore initial version 2011-11-15 16:06:02 +01:00
LICENSE readme and licensing 2011-11-15 16:07:18 +01:00
README.md update git path 2011-11-15 16:11:44 +01:00
build.sbt initial version 2011-11-15 16:06:02 +01:00

README.md

sbt-dependency-graph

Create a graph (in graphml format) from your project's dependencies.

Requirements

  • Simple Build Tool

How To Use

For sbt 0.11, in project/plugins/project/build.scala:

import sbt._

object Plugins extends Build {
  lazy val root = Project("root", file(".")) dependsOn(
    uri("git://github.com/jrudolph/sbt-dependency-graph.git#XX") // where XX is tag/branch
  )
}

Then, add the following in your build.sbt:

seq(net.virtualvoid.sbt.graph.Plugin.graphSettings: _*)

In sbt you can then use the dependency-graph task in sbt to generate a graphml file in target/dependencies.graphml. Use e.g. yEd to format the graph to your needs.

Inner Workings

The task relies on sbt/Ivy's deliver-local task to create an ivy report inside the .ivy2/cache directory. This report is then transformed into a graphml file.

License

Copyright (c) 2011 Johannes Rudolph

Published under the Apache License 2.0.