mirror of https://github.com/sbt/sbt.git
fix compilation
This commit is contained in:
parent
91a2b3d8ad
commit
47684b4ec2
|
|
@ -84,8 +84,8 @@ final case class ResolutionParams(
|
|||
|
||||
override lazy val hashCode =
|
||||
this match {
|
||||
case ResolutionParams(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) =>
|
||||
(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) .##
|
||||
case ResolutionParams(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17) =>
|
||||
(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17) .##
|
||||
}
|
||||
|
||||
// ResolutionParams.unapply(this).get.##
|
||||
|
|
|
|||
|
|
@ -61,8 +61,7 @@ final class ResolutionSpec extends AnyPropSpec with Matchers {
|
|||
val resolution =
|
||||
lmEngine.update(coursierModule, UpdateConfiguration(), UnresolvedWarningConfiguration(), log)
|
||||
|
||||
resolution should be('right)
|
||||
val r = resolution.right.get
|
||||
val r = resolution.toOption.get
|
||||
r.configurations.map(_.configuration) should have size configurations.length
|
||||
|
||||
val compileConfig = r.configurations.find(_.configuration == Compile.toConfigRef).get
|
||||
|
|
@ -115,7 +114,7 @@ final class ResolutionSpec extends AnyPropSpec with Matchers {
|
|||
val resolution =
|
||||
lmEngine.update(coursierModule, UpdateConfiguration(), UnresolvedWarningConfiguration(), log)
|
||||
|
||||
resolution should be('right)
|
||||
assert(resolution.isRight)
|
||||
}
|
||||
|
||||
property("resolve with resolvers using a custom protocols") {
|
||||
|
|
@ -221,8 +220,7 @@ final class ResolutionSpec extends AnyPropSpec with Matchers {
|
|||
val coursierModule = module(lmEngine, stubModule, dependencies, Some("2.12.4"))
|
||||
val resolution =
|
||||
lmEngine.update(coursierModule, UpdateConfiguration(), UnresolvedWarningConfiguration(), log)
|
||||
|
||||
resolution should be('right)
|
||||
assert(resolution.isRight)
|
||||
}
|
||||
|
||||
property("resolve plugins hosted on repo.typesafe.com") {
|
||||
|
|
@ -233,6 +231,6 @@ final class ResolutionSpec extends AnyPropSpec with Matchers {
|
|||
val resolution =
|
||||
lmEngine.update(coursierModule, UpdateConfiguration(), UnresolvedWarningConfiguration(), log)
|
||||
|
||||
resolution should be('right)
|
||||
assert(resolution.isRight)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue