fix dependency-management/cache-classifers test

used user cache, which made it flaky
This commit is contained in:
Mark Harrah 2013-10-10 21:36:11 -04:00
parent 0cd8849ec1
commit f08da1a33c
3 changed files with 10 additions and 7 deletions

View File

@ -1,4 +1,7 @@
libraryDependencies += "org.example" %% "artifacta" % "1.0.0-SNAPSHOT" withSources() classifier("tests") classifier("")
libraryDependencies += "org.example" %% "artifacta" % "1.0.0-SNAPSHOT" withSources() classifier("tests")
externalResolvers := Seq( "demo" at ( (baseDirectory in ThisBuild).value / "demo-repo").toURI.toString )
externalResolvers := Seq(
"demo" at ( (baseDirectory in ThisBuild).value / "demo-repo").toURI.toString,
DefaultMavenRepository
)

View File

@ -1,3 +1,6 @@
val b = project
def localCache =
ivyPaths := new IvyPaths(baseDirectory.value, Some((baseDirectory in ThisBuild).value / "ivy" / "cache"))
val a = project
val b = project.settings(localCache)
val a = project.settings(localCache)

View File

@ -1,7 +1,6 @@
> a/publish
$ copy-file changes/B.scala b/B.scala
> b/update
-> b/test:compile
# Need to sleep 3s because the check depends on last modified time and typical resolution is 1s.
@ -10,6 +9,4 @@ $ sleep 3000
$ copy-file changes/A.scala a/src/test/scala/A.scala
> a/publish
-> b/test:compile
> b/update
> b/test:compile