mirror of https://github.com/sbt/sbt.git
delete dependency-management/inherit-repo test
repository used in the test doesn't exist anymore and project delegation is deprecated
This commit is contained in:
parent
48fb98f2d1
commit
82dcf8d250
|
|
@ -1 +0,0 @@
|
|||
externalResolvers := ("Extra Test Repository" at "http://dev.camptocamp.com/files/m2_repo/") :: Nil
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
import sbt._
|
||||
import Keys._
|
||||
|
||||
object TestProject extends Build
|
||||
{
|
||||
override lazy val settings = super.settings ++ Seq(
|
||||
externalResolvers := Nil,
|
||||
autoScalaLibrary := false,
|
||||
ivyScala := None,
|
||||
ivyPaths <<= baseDirectory( dir => new IvyPaths(dir, Some(dir / "ivy-home")))
|
||||
)
|
||||
|
||||
lazy val root = Project("root", file(".")) aggregate(a, b)
|
||||
|
||||
lazy val a = Project("a", file("a")) delegateTo(b) settings(
|
||||
libraryDependencies += "com.camptocamp.tl.caltar" % "core" % "0.5" intransitive()
|
||||
)
|
||||
lazy val b = Project("b", file("b"))
|
||||
}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
> set logLevel := Level.Debug
|
||||
# This should fail because project A declares a dependency that exists in an extra repository, which we haven't declared
|
||||
-> show update
|
||||
|
||||
# Copy the project definition with the extra repository declared in project B and with A delegating to B and reload
|
||||
$ copy-file changes/WithRepository.sbt b/build.sbt
|
||||
> reload
|
||||
|
||||
# Try updating again, which should work because the repository declared in B should be shared by A
|
||||
> update
|
||||
|
||||
# Copy the project definition with the extra repository declared in both A and B and reload
|
||||
$ copy-file changes/WithRepository.sbt a/build.sbt
|
||||
> reload
|
||||
|
||||
> update
|
||||
|
||||
# Copy the project definition with the extra repository declared in A only and reload
|
||||
$ delete b/build.sbt
|
||||
> reload
|
||||
|
||||
> update
|
||||
Loading…
Reference in New Issue