mirror of
https://github.com/sbt/sbt.git
synced 2026-10-07 10:33:30 +02:00
Add 3s sleep to dependency-management/cache-classifiers test to handle 1s last modified resolution.
This commit is contained in:
@@ -6,4 +6,4 @@ version := "1.0.0-SNAPSHOT"
|
||||
|
||||
publishArtifact in (Test,packageBin) := true
|
||||
|
||||
publishTo := Some(Resolver.file("demo", (baseDirectory in ThisBuild).value / "demo-repo"))
|
||||
publishTo <<= (baseDirectory in ThisBuild) { base => Some(Resolver.file("demo", base / "demo-repo")) }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
libraryDependencies += "org.example" %% "artifacta" % "1.0.0-SNAPSHOT" withSources() classifier("test") classifier("")
|
||||
|
||||
externalResolvers := Seq( "demo" at ( (baseDirectory in ThisBuild).value / "demo-repo").toURI.toString )
|
||||
externalResolvers <<= baseDirectory in ThisBuild map { base => Seq( "demo" at (base / "demo-repo").toURI.toString ) }
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
val b = project
|
||||
|
||||
val a = project
|
||||
@@ -0,0 +1,7 @@
|
||||
import sbt._
|
||||
import Keys._
|
||||
|
||||
object B extends Build {
|
||||
lazy val b = Project("b", file("b"))
|
||||
lazy val a = Project("a", file("a"))
|
||||
}
|
||||
@@ -4,6 +4,9 @@ $ 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.
|
||||
$ sleep 3000
|
||||
|
||||
$ copy-file changes/A.scala a/src/test/scala/A.scala
|
||||
> a/publish
|
||||
|
||||
|
||||
Reference in New Issue
Block a user