@@ -16,6 +16,7 @@ Details and background information can be read on our [ePages Developer Blog](ht
1616<!-- TOC depthFrom:2 depthTo:3 -->
1717
1818- [ Contents] ( #contents )
19+ - [ Versions] ( #versions )
1920- [ How to include ` restdocs-wiremock ` into your server project] ( #how-to-include-restdocs-wiremock-into-your-server-project )
2021 - [ Dependencies] ( #dependencies )
2122 - [ Producing snippets] ( #producing-snippets )
@@ -36,6 +37,16 @@ This repository consists of two libraries:
3637* ` wiremock-spring-boot-starter ` : A spring boot starter which adds a ` WireMockServer ` to your client's ApplicationContext for integration testing.
3738 This is optional, but highly recommended when verifying your client contract in a SpringBootTest.
3839
40+ ## Versions
41+
42+ There are multiple major versions of the libraries in different branches.
43+ The following table provides an overview which "restdocs-wiremock" release branch is to be used for microservices on specific Spring Boot versions.
44+
45+ | restdocs-wiremock version | Spring Boot version | Java version |
46+ | -----------------------------------------------------------------------| ---------------------| --------------|
47+ | [ 1.x.x] ( https://github.com/ePages-de/restdocs-wiremock/releases?q=1. ) | 3.3.x | 21 |
48+ | [ 0.x.x] ( https://github.com/ePages-de/restdocs-wiremock/releases?q=0. ) | 2.7.x | 17 |
49+
3950## How to include ` restdocs-wiremock ` into your server project
4051
4152### Dependencies
@@ -51,7 +62,7 @@ In gradle it would look like this:
5162
5263``` groovy
5364dependencies {
54- testCompile('com.epages:restdocs-wiremock:0.8.5 ')
65+ testCompile('com.epages:restdocs-wiremock:0.8.9 ')
5566 testCompile('org.springframework.restdocs:spring-restdocs-mockmvc')
5667}
5768```
@@ -62,7 +73,7 @@ When using maven:
6273<dependency >
6374 <groupId >com.epages</groupId >
6475 <artifactId >restdocs-wiremock</artifactId >
65- <version >0.8.5 </version >
76+ <version >0.8.9 </version >
6677 <scope >test</scope >
6778</dependency >
6879<dependency >
@@ -230,7 +241,7 @@ On the client side, add a dependency to the test-runtime to the jar containing t
230241that, the JSON files can be accessed as classpath resources.
231242
232243```groovy
233- testRuntime (group: ' com.epages' , name: ' restdocs-server' , version: ' 0.8.5 ' , classifier: ' wiremock' , ext: ' jar' )
244+ testRuntime (group: ' com.epages' , name: ' restdocs-server' , version: ' 0.8.9 ' , classifier: ' wiremock' , ext: ' jar' )
234245```
235246
236247## How to use WireMock in your client tests
@@ -247,7 +258,7 @@ Services based on `spring-cloud-netflix`, i.e. using `feign` and `ribbon`, are a
247258To add a dependency via gradle, extend your `build. gradle` with the following line:
248259
249260```groovy
250- testCompile(' com.epages:wiremock-spring-boot-starter:0.8.5 ' )
261+ testCompile(' com.epages:wiremock-spring-boot-starter:0.8.9 ' )
251262```
252263
253264
@@ -257,7 +268,7 @@ When using maven, add the following dependency in test scope.
257268< dependency>
258269 < groupId> com. epages< / groupId>
259270 < artifactId> wiremock- spring- boot- starter< / artifactId>
260- < version> 0.8 . 5 < / version>
271+ < version> 0.8 . 9 < / version>
261272 < scope> test< / scope>
262273< / dependency>
263274```
0 commit comments