Skip to content

Commit

Permalink
Updated to use mockito 5.6.0, and added a note in README.md about the…
Browse files Browse the repository at this point in the history
… requirement for jdk11 for mockito 5.
  • Loading branch information
cheeseng committed Oct 14, 2023
1 parent 0e869ca commit a0c1804
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,28 @@ 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.6.x:

SBT:

```
libraryDependencies += "org.scalatestplus" %% "mockito-4-11" % "3.2.17.0" % "test"
libraryDependencies += "org.scalatestplus" %% "mockito-5-6" % "3.2.17.0" % "test"
```

Maven:

```
<dependency>
<groupId>org.scalatestplus</groupId>
<artifactId>mockito-4-11_2.13</artifactId>
<artifactId>mockito-5-6_3</artifactId>
<version>3.2.17.0</version>
<scope>test</scope>
</dependency>
```

**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:
Expand Down
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import java.io.PrintWriter
import scala.io.Source

name := "mockito-4.11"
name := "mockito-5.6"

organization := "org.scalatestplus"

Expand Down Expand Up @@ -30,10 +30,10 @@ developers := List(

scalaVersion := "2.13.11"

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.11", "3.1.3")

libraryDependencies ++= Seq(
"org.mockito" % "mockito-core" % "4.11.0",
"org.mockito" % "mockito-core" % "5.6.0",
"org.scalatest" %% "scalatest-core" % "3.2.17",
"org.scalatest" %% "scalatest-funsuite" % "3.2.17" % "test"
)
Expand Down

0 comments on commit a0c1804

Please sign in to comment.