test for modifying build dependencies in settings

This commit is contained in:
Mark Harrah 2011-10-26 20:12:03 -04:00
parent 5fbe6e9d97
commit 8e1cdcf989
5 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,3 @@
object A {
val x = B.x
}

View File

@ -0,0 +1,3 @@
object B {
val x = 3
}

View File

@ -0,0 +1,3 @@
buildDependencies in Global <<= (buildDependencies in Global, thisProjectRef, thisProjectRef in a) { (deps, refB, refA) =>
deps.addClasspath(refA, ResolvedClasspathDependency(refB, None))
}

View File

@ -0,0 +1,9 @@
import sbt._
import Keys._
object B extends Build
{
lazy val root = Project("root", file("."))
lazy val a = Project("a", file("a"))
lazy val b = Project("b", file("b"))
}

View File

@ -0,0 +1,4 @@
-> a/compile
$ copy-file changes/b.sbt b/build.sbt
> reload
> a/compile