Switch to coursier 2.0.0-RC2-3

This commit is contained in:
Alexandre Archambault 2019-06-20 14:08:34 +02:00
parent 1a297411b7
commit 75ac7b6ca1
2 changed files with 19 additions and 18 deletions

View File

@ -15,7 +15,7 @@ inThisBuild(List(
)
))
val coursierVersion0 = "2.0.0-RC2-2"
val coursierVersion0 = "2.0.0-RC2-3"
lazy val `lm-coursier` = project
// .enablePlugins(ContrabandPlugin)

View File

@ -47,23 +47,24 @@ final case class ResolutionParams(
mainRepositories ++
fallbackDependenciesRepositories
lazy val resolutionKey = SbtCoursierCache.ResolutionKey(
dependencies,
repositories,
copy(
parentProjectCache = Map.empty,
loggerOpt = None,
cache = null, // temporary, until we can use https://github.com/coursier/coursier/pull/1090
parallel = 0
),
ResolutionParams.cacheKey {
cache
.withPool(null)
.withLogger(null)
.withSync[Task](null)
},
sbtClassifiers
)
lazy val resolutionKey = {
val cleanCache = cache
.withPool(null)
.withLogger(null)
.withSync[Task](null)
SbtCoursierCache.ResolutionKey(
dependencies,
repositories,
copy(
parentProjectCache = Map.empty,
loggerOpt = None,
parallel = 0,
cache = cleanCache
),
ResolutionParams.cacheKey(cleanCache),
sbtClassifiers
)
}
override lazy val hashCode =
ResolutionParams.unapply(this).get.##