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