Slack logo Need help? Join the WireMock community Slack
WARNING: This document is for WireMock 3.x preview. See the documentation for the current WireMock 2.x baseline here. If you are interested to know more what is planned for WireMock 3.x, see this page.

Download and Installation

WireMock is distributed in two flavours - a standard JAR containing just WireMock, and a standalone uber JAR containing WireMock plus all its dependencies.

Most of the standalone JAR’s dependencies are shaded i.e. they are hidden in alternative packages. This allows WireMock to be used in projects with conflicting versions of its dependencies. The standalone JAR is also runnable (see Running as a Standalone Process).

3.x beta

Maven:

<dependency>
    <groupId>com.github.tomakehurst</groupId>
    <artifactId>wiremock</artifactId>
    <version>3.0.0-beta-8</version>
    <scope>test</scope>
</dependency>

Maven (standalone):

<dependency>
    <groupId>com.github.tomakehurst</groupId>
    <artifactId>wiremock-standalone</artifactId>
    <version>3.0.0-beta-8</version>
    <scope>test</scope>
</dependency>

Gradle:

testImplementation "com.github.tomakehurst:wiremock:3.0.0-beta-8"

Gradle (standalone):

testImplementation "com.github.tomakehurst:wiremock-standalone:3.0.0-beta-8"

Stable

Maven:

<dependency>
    <groupId>com.github.tomakehurst</groupId>
    <artifactId>wiremock-jre8</artifactId>
    <version>2.35.0</version>
    <scope>test</scope>
</dependency>

Maven (standalone):

<dependency>
    <groupId>com.github.tomakehurst</groupId>
    <artifactId>wiremock-jre8-standalone</artifactId>
    <version>2.35.0</version>
    <scope>test</scope>
</dependency>

Gradle:

testImplementation "com.github.tomakehurst:wiremock-jre8:2.35.0"

Gradle (standalone):

testImplementation "com.github.tomakehurst:wiremock-jre8-standalone:2.35.0"

Direct download

If you want to run WireMock as a standalone process you can download the standalone JAR from here