File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed
Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -653,12 +653,26 @@ lazy val utilTest = Project(
653653 id = " util-test" ,
654654 base = file(" util-test" )
655655).settings(
656- sharedSettings
656+ sharedScala3EnabledSettings
657657 ).settings(
658658 name := " util-test" ,
659- libraryDependencies ++= Seq (
660- " org.mockito" % " mockito-all" % " 1.10.19" ,
661- " org.scalatestplus" %% " mockito-1-10" % " 3.1.0.0"
659+ libraryDependencies ++= (
660+ if (scalaVersion.value.startsWith(" 2" ))
661+ Seq (
662+ " org.mockito" % " mockito-all" % " 1.10.19" ,
663+ " org.scalatest" %% " scalatest" % " 3.1.2" ,
664+ " org.scalatestplus" %% " mockito-1-10" % " 3.1.0.0"
665+ )
666+ else
667+ Seq (
668+ // We keep this ancient version for now as it's unclear how much source incompatibility a jump to 3.4.x would
669+ // cause to consumers of this module.
670+ // If we run into compatibility issues with new versions of scalatest-mockito we will have to upgrade to
671+ // mockito-core 3.4.x for Scala 2 and 3.
672+ " org.mockito" % " mockito-all" % " 1.10.19" ,
673+ " org.scalatest" %% " scalatest" % " 3.2.9" ,
674+ " org.scalatestplus" %% " mockito-3-4" % " 3.2.9.0"
675+ )
662676 )
663677 ).dependsOn(utilCore, utilLogging, utilStats)
664678
You can’t perform that action at this time.
0 commit comments