mirror of
https://github.com/sbt/sbt.git
synced 2026-09-06 09:37:02 +02:00
test for modifying build dependencies in settings
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user