diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e24adcf..ec8fcfb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,6 @@ jobs: uses: actions/setup-java@v3 with: distribution: temurin - java-version: 8 + java-version: 11 - name: Build and Test run: sbt -v +test diff --git a/README.md b/README.md index a63c926..5d6be71 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,12 @@ ScalaTest + Mockito provides integration support between ScalaTest and Mockito. **Usage** -To use it for ScalaTest 3.2.17 and Mockito 4.11.x: +To use it for ScalaTest 3.2.17 and Mockito 5.8.x: SBT: ``` -libraryDependencies += "org.scalatestplus" %% "mockito-4-11" % "3.2.17.0" % "test" +libraryDependencies += "org.scalatestplus" %% "mockito-5-8" % "3.2.17.0" % "test" ``` Maven: @@ -16,12 +16,15 @@ Maven: ``` org.scalatestplus - mockito-4-11_2.13 + mockito-5-8_3 3.2.17.0 test ``` +**Note** +Mockito 5.x requires JDK11+, if you are on JDK8, please use `mockito-4-11` instead. + **Publishing** Please use the following commands to publish to Sonatype: diff --git a/build.sbt b/build.sbt index c8423c5..b9290fe 100644 --- a/build.sbt +++ b/build.sbt @@ -1,7 +1,7 @@ import java.io.PrintWriter import scala.io.Source -name := "mockito-4.11" +name := "mockito-5.8" organization := "org.scalatestplus" @@ -28,12 +28,12 @@ developers := List( ) ) -scalaVersion := "2.13.11" +scalaVersion := "2.13.12" -crossScalaVersions := List("2.10.7", "2.11.12", "2.12.17", "2.13.11", "3.1.3") +crossScalaVersions := List("2.10.7", "2.11.12", "2.12.18", "2.13.12", "3.1.3") libraryDependencies ++= Seq( - "org.mockito" % "mockito-core" % "4.11.0", + "org.mockito" % "mockito-core" % "5.8.0", "org.scalatest" %% "scalatest-core" % "3.2.17", "org.scalatest" %% "scalatest-funsuite" % "3.2.17" % "test" )