mirror of https://github.com/sbt/sbt.git
fix dependency-management/cache-classifers test
used user cache, which made it flaky
This commit is contained in:
parent
0cd8849ec1
commit
f08da1a33c
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue