Skip to content

Commit

Permalink
Fixed #1480 - updated documentation to point consistently to Java 8 J…
Browse files Browse the repository at this point in the history
…ARs and indicate deprecation of Java 7 JARs
  • Loading branch information
Tom Akehurst committed May 11, 2021
1 parent 8de31a3 commit 465e744
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 21 deletions.
43 changes: 24 additions & 19 deletions docs-v2/_docs/download-and-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,78 +16,83 @@ Additionally, versions of these JARs are distributed for both Java 7 and Java 8+
The Java 7 distribution is aimed primarily at Android developers and enterprise Java teams still using JRE7. Some of its
dependencies are not set to the latest versions e.g. Jetty 9.2.x is used, as this is the last minor version to retain Java 7 compatibility.

The Java 8+ build endeavours to track the latest version of all its major dependencies. This is usually the version you should choose by default.
The Java 8+ build endeavours to track the latest version of all its major dependencies.

> **note**
>
> The Java 7 version is now deprecated in the 2.x line and version 2.27.2 is the last release available. It's strongly
> recommended that you use the Java 8 releases if possible.
## Maven dependencies

Java 7:
Java 8:

```xml
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock</artifactId>
<artifactId>wiremock-jre8</artifactId>
<version>{{ site.wiremock_version }}</version>
<scope>test</scope>
</dependency>
```

Java 7 standalone:
Java 8 standalone:

```xml
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-standalone</artifactId>
<artifactId>wiremock-jre8-standalone</artifactId>
<version>{{ site.wiremock_version }}</version>
<scope>test</scope>
</dependency>
```

Java 8:
Java 7 (deprecated):

```xml
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<version>{{ site.wiremock_version }}</version>
<artifactId>wiremock</artifactId>
<version>2.27.2</version>
<scope>test</scope>
</dependency>
```

Java 8 standalone:
Java 7 standalone (deprecated):

```xml
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8-standalone</artifactId>
<version>{{ site.wiremock_version }}</version>
<artifactId>wiremock-standalone</artifactId>
<version>2.27.2</version>
<scope>test</scope>
</dependency>
```

## Gradle dependencies

Java 7:
Java 8:

```groovy
testCompile "com.github.tomakehurst:wiremock:{{ site.wiremock_version }}"
testCompile "com.github.tomakehurst:wiremock-jre8:{{ site.wiremock_version }}"
```

Java 7 standalone:
Java 8 standalone:

```groovy
testCompile "com.github.tomakehurst:wiremock-standalone:{{ site.wiremock_version }}"
testCompile "com.github.tomakehurst:wiremock-jre8-standalone:{{ site.wiremock_version }}"
```

Java 8:
Java 7 (deprecated):

```groovy
testCompile "com.github.tomakehurst:wiremock-jre8:{{ site.wiremock_version }}"
testCompile "com.github.tomakehurst:wiremock:2.27.2"
```

Java 8 standalone:
Java 7 standalone (deprecated):

```groovy
testCompile "com.github.tomakehurst:wiremock-jre8-standalone:{{ site.wiremock_version }}"
testCompile "com.github.tomakehurst:wiremock-standalone:2.27.2"
```

## Direct download
Expand Down
4 changes: 2 additions & 2 deletions docs-v2/_docs/running-standalone.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ description: Running WireMock as a standalone mock server.
The WireMock server can be run in its own process, and configured via
the Java API, JSON over HTTP or JSON files.

Once you have [downloaded the standalone JAR](https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-standalone/{{ site.wiremock_version }}/wiremock-standalone-{{ site.wiremock_version }}.jar) you can run it simply by doing this:
Once you have [downloaded the standalone JAR](https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-jre8-standalone/{{ site.wiremock_version }}/wiremock-jre8-standalone-{{ site.wiremock_version }}.jar) you can run it simply by doing this:

```bash
$ java -jar wiremock-standalone-{{ site.wiremock_version }}.jar
$ java -jar wiremock-jre8-standalone-{{ site.wiremock_version }}.jar
```

## Command line options
Expand Down

0 comments on commit 465e744

Please sign in to comment.