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(
650
650
id = " util-test" ,
651
651
base = file(" util-test" )
652
652
).settings(
653
- sharedSettings
653
+ sharedScala3EnabledSettings
654
654
).settings(
655
655
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
+ )
659
672
)
660
673
).dependsOn(utilCore, utilLogging, utilStats)
661
674
You can’t perform that action at this time.
0 commit comments