User Guide - Installation



You can download ScalaMock jars and sources from Maven Central or JCenter.

We also have a group on Bintray where you can subscribe to update notifications.

To see all published versions look here.


You can find the ScalaMock repository and source code on Github.

sbt projects

To use ScalaMock in sbt with ScalaTest add the following to your project file:

libraryDependencies += "org.scalamock" %% "scalamock-scalatest-support" % "3.5.0" % Test

To use ScalaMock with Specs2:

libraryDependencies += "org.scalamock" %% "scalamock-specs2-support" % "3.5.0" % Test

Maven projects

To include ScalaMock in your Maven project add the following to your pom.xml:



testCompile 'org.scalamock:scalamock-scalatest-support_2.12:3.5.0'