Skip to content

Commit

Permalink
util-test: Scala 3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbr committed Jul 28, 2022
1 parent 936ceec commit 67eea34
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -653,12 +653,26 @@ lazy val utilTest = Project(
id = "util-test",
base = file("util-test")
).settings(
sharedSettings
sharedScala3EnabledSettings
).settings(
name := "util-test",
libraryDependencies ++= Seq(
"org.mockito" % "mockito-all" % "1.10.19",
"org.scalatestplus" %% "mockito-1-10" % "3.1.0.0"
libraryDependencies ++= (
if (scalaVersion.value.startsWith("2"))
Seq(
"org.mockito" % "mockito-all" % "1.10.19",
"org.scalatest" %% "scalatest" % "3.1.2",
"org.scalatestplus" %% "mockito-1-10" % "3.1.0.0"
)
else
Seq(
// We keep this ancient version for now as it's unclear how much source incompatibility a jump to 3.4.x would
// cause to consumers of this module.
// If we run into compatibility issues with new versions of scalatest-mockito we will have to upgrade to
// mockito-core 3.4.x for Scala 2 and 3.
"org.mockito" % "mockito-all" % "1.10.19",
"org.scalatest" %% "scalatest" % "3.2.9",
"org.scalatestplus" %% "mockito-3-4" % "3.2.9.0"
)
)
).dependsOn(utilCore, utilLogging, utilStats)

Expand Down

0 comments on commit 67eea34

Please sign in to comment.