Hacky tool for inferring Scala projects' intra-project, inter-package dependencies and rendering them to DOT graphs.
git clone git@github.com:ryan-williams/scala-pkg-deps.git
cd scala-pkg-deps
sbt pack
target/pack/bin/inter-package-deps-to-dot <path-to-analyze> # Outputs DOT to stdout.
target/pack/bin/inter-package-deps-to-dot <path-to-analyze> <out-file.dot>
src/test/resources/guac-readsets
has a small example taken from hammerlab/guacamole.
Here is a rendered dot-graph on all of hammerlab/guacamole:
This tool uses a couple of simple regexs to try to find package
declarations and import
statements; as a result, it may produce incorrect results in arbitrary ways.