mirror of https://github.com/sbt/sbt.git
test for modifying build dependencies in settings
This commit is contained in:
parent
5fbe6e9d97
commit
8e1cdcf989
|
|
@ -0,0 +1,3 @@
|
|||
object A {
|
||||
val x = B.x
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
object B {
|
||||
val x = 3
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
buildDependencies in Global <<= (buildDependencies in Global, thisProjectRef, thisProjectRef in a) { (deps, refB, refA) =>
|
||||
deps.addClasspath(refA, ResolvedClasspathDependency(refB, None))
|
||||
}
|
||||
|
|
@ -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"))
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
-> a/compile
|
||||
$ copy-file changes/b.sbt b/build.sbt
|
||||
> reload
|
||||
> a/compile
|
||||
Loading…
Reference in New Issue