Steps:
Small repro can be found here: https://github.com/romanowski/sbt-problems/tree/incremental-update-scopes
Problem:
If incremental update is on when given lib is evicted all extra scopes are dropped.
lazy val a = project settings(
myResolver,
updateOptions := updateOptions.value.withCachedResolution(true), //comment this line to make ws compile
libraryDependencies += "a" % "b" % "1.0.0" % "compile->runtime",
libraryDependencies += "a" % "b" % "1.0.0" % "compile->runtime2 "
)
lazy val b = project dependsOn(a) settings(
myResolver,
updateOptions := updateOptions.value.withCachedResolution(true), //comment this line to make ws compile
libraryDependencies += "a" % "b" % "1.0.1" % "compile->runtime"
)
Expectations
Incremental update will preserve scopes declared in evicted libs.