|
|
|
|
@ -1,13 +1,14 @@
|
|
|
|
|
import collection.mutable.ListBuffer
|
|
|
|
|
import net.virtualvoid.sbt.graph.Plugin._
|
|
|
|
|
|
|
|
|
|
import sbt._
|
|
|
|
|
import sbt.Keys._
|
|
|
|
|
|
|
|
|
|
import net.virtualvoid.sbt.graph.DependencyGraphKeys._
|
|
|
|
|
|
|
|
|
|
object Build extends sbt.Build {
|
|
|
|
|
|
|
|
|
|
def defaultSettings =
|
|
|
|
|
seq(scalaVersion := "2.9.2")
|
|
|
|
|
Seq(scalaVersion := "2.9.2")
|
|
|
|
|
|
|
|
|
|
lazy val justATransiviteDependencyEndpointProject =
|
|
|
|
|
Project("just-a-transitive-dependency-endpoint", file("a"))
|
|
|
|
|
@ -24,23 +25,19 @@ object Build extends sbt.Build {
|
|
|
|
|
|
|
|
|
|
lazy val test_project =
|
|
|
|
|
Project("test-dot-file-generation", file("d"))
|
|
|
|
|
.settings(graphSettings: _*)
|
|
|
|
|
.settings(defaultSettings: _*)
|
|
|
|
|
.settings(
|
|
|
|
|
TaskKey[Unit]("check") <<= (dependencyDot in Compile) map { (dotFile) =>
|
|
|
|
|
val expectedGraph =
|
|
|
|
|
"""digraph "dependency-graph" {
|
|
|
|
|
| graph[rankdir="LR"]
|
|
|
|
|
| node [
|
|
|
|
|
| shape="record"
|
|
|
|
|
| ]
|
|
|
|
|
| edge [
|
|
|
|
|
| arrowtail="none"
|
|
|
|
|
| ]
|
|
|
|
|
| "test-dot-file-generation:test-dot-file-generation_2.9.2:0.1-SNAPSHOT"[label=<test-dot-file-generation<BR/><B>test-dot-file-generation_2.9.2</B><BR/>0.1-SNAPSHOT>]
|
|
|
|
|
| "just-a-transitive-dependency:just-a-transitive-dependency_2.9.2:0.1-SNAPSHOT"[label=<just-a-transitive-dependency<BR/><B>just-a-transitive-dependency_2.9.2</B><BR/>0.1-SNAPSHOT>]
|
|
|
|
|
| "just-a-transitive-dependency-endpoint:just-a-transitive-dependency-endpoint_2.9.2:0.1-SNAPSHOT"[label=<just-a-transitive-dependency-endpoint<BR/><B>just-a-transitive-dependency-endpoint_2.9.2</B><BR/>0.1-SNAPSHOT>]
|
|
|
|
|
| "just-a-dependency:just-a-dependency_2.9.2:0.1-SNAPSHOT"[label=<just-a-dependency<BR/><B>just-a-dependency_2.9.2</B><BR/>0.1-SNAPSHOT>]
|
|
|
|
|
| "test-dot-file-generation:test-dot-file-generation_2.9.2:0.1-SNAPSHOT"[labelType="html" label="test-dot-file-generation<BR/><B>test-dot-file-generation_2.9.2</B><BR/>0.1-SNAPSHOT" style=""]
|
|
|
|
|
| "just-a-transitive-dependency:just-a-transitive-dependency_2.9.2:0.1-SNAPSHOT"[labelType="html" label="just-a-transitive-dependency<BR/><B>just-a-transitive-dependency_2.9.2</B><BR/>0.1-SNAPSHOT" style=""]
|
|
|
|
|
| "just-a-transitive-dependency-endpoint:just-a-transitive-dependency-endpoint_2.9.2:0.1-SNAPSHOT"[labelType="html" label="just-a-transitive-dependency-endpoint<BR/><B>just-a-transitive-dependency-endpoint_2.9.2</B><BR/>0.1-SNAPSHOT" style=""]
|
|
|
|
|
| "just-a-dependency:just-a-dependency_2.9.2:0.1-SNAPSHOT"[labelType="html" label="just-a-dependency<BR/><B>just-a-dependency_2.9.2</B><BR/>0.1-SNAPSHOT" style=""]
|
|
|
|
|
| "test-dot-file-generation:test-dot-file-generation_2.9.2:0.1-SNAPSHOT" -> "just-a-transitive-dependency:just-a-transitive-dependency_2.9.2:0.1-SNAPSHOT"
|
|
|
|
|
| "just-a-transitive-dependency:just-a-transitive-dependency_2.9.2:0.1-SNAPSHOT" -> "just-a-transitive-dependency-endpoint:just-a-transitive-dependency-endpoint_2.9.2:0.1-SNAPSHOT"
|
|
|
|
|
| "test-dot-file-generation:test-dot-file-generation_2.9.2:0.1-SNAPSHOT" -> "just-a-dependency:just-a-dependency_2.9.2:0.1-SNAPSHOT"
|
|
|
|
|
|