digraph G {
  compound=true;
  rankdir=RL;
  node [shape=box];

  subgraph cluster_gen {
    label="gen goal";
    color=blue;
    scrooge;
  }

  subgraph cluster_resolve {
    label="resolve goal";
    color=blue;
    ivy;
  }

  subgraph cluster_compile {
    label="compile goal";
    color=blue;
    checkstyle -> javac -> scalac;
  }

  subgraph cluster_test {
    label="test goal";
    color=blue;
    specs -> junit;
  }

  specs -> checkstyle [ltail=cluster_test, lhead=cluster_compile];
  checkstyle -> ivy [ltail=cluster_compile, lhead=cluster_resolve];
  ivy -> scrooge [ltail=cluster_resolve, lhead=cluster_gen];
}
