9
9
> and there might be incompatible changes before the 1.0 release.
10
10
> Contributions are welcome!
11
11
12
- This module allows provisioning the WireMock server
12
+ This module allows provisioning the WireMock server
13
13
as a standalone container
14
- within your unit test , based on [ WireMock Docker] ( https://github.com/wiremock/wiremock-docker ) .
14
+ within your unit tests , based on [ WireMock Docker] ( https://github.com/wiremock/wiremock-docker ) .
15
15
16
16
While you can run [ WireMock Java] ( https://github.com/wiremock/wiremock )
17
17
with the same result for the most of the use-cases,
@@ -34,13 +34,39 @@ Please feel free to contribute the integration tests and compatibility layers!
34
34
35
35
### Importing the dependency
36
36
37
- At the moment the module is published to GitHub Packages only,
38
- see [ Issue #56 ] ( https://github.com/wiremock/wiremock-testcontainers-java/issues/56 )
39
- for publishing to Maven Central.
40
- For the moment, you can use the authenticated GitHub Packages server or
41
- [ JitPack] ( https://jitpack.io/ ) to add the dependency in your projects.
37
+ The module is published to Maven Central and GitHub Packages.
38
+ You can also use [ JitPack] ( https://jitpack.io/ ) to add the dependency in your projects.
42
39
43
- #### Maven / JitPack
40
+ #### Maven
41
+
42
+ ``` xml
43
+ <dependency >
44
+ <groupId >org.wiremock.integrations.testcontainers</groupId >
45
+ <artifactId >wiremock-testcontainers-module</artifactId >
46
+ <version >${see the releases}</version >
47
+ <scope >test</scope >
48
+ </dependency >
49
+ ```
50
+
51
+ #### Gradle
52
+
53
+ ``` gradle
54
+ dependencies {
55
+ testImplementation 'org.wiremock.integrations.testcontainers:wiremock-testcontainers-module:${wiremock-testcontainers.version}'
56
+ }
57
+ ```
58
+
59
+ #### GitHub Packages
60
+
61
+ GitHub Packages uses the official Maven coordinates (same as Maven Central above),
62
+ but you will need to configure the server and authentication.
63
+
64
+ #### JitPack
65
+
66
+ <details >
67
+ <summary >
68
+ JitPack / Maven
69
+ </summary >
44
70
45
71
``` xml
46
72
<dependencies >
@@ -61,14 +87,14 @@ For the moment, you can use the authenticated GitHub Packages server or
61
87
</repositories >
62
88
```
63
89
90
+ </details >
91
+
64
92
<details >
65
93
<summary >
66
- Gradle / JitPack
94
+ JitPack / Gradle
67
95
</summary >
68
96
69
- #### Gradle / JitPack
70
-
71
- ``` groovy
97
+ ``` gradle
72
98
allprojects {
73
99
repositories {
74
100
maven { url 'https://jitpack.io' }
@@ -80,26 +106,6 @@ Gradle / JitPack
80
106
}
81
107
82
108
```
83
- </details >
84
-
85
- <details >
86
- <summary >
87
- Maven / GitHub Packages
88
- </summary >
89
-
90
- #### Maven / GitHub Packages
91
-
92
- GitHub Packages uses the official Maven coordinates,
93
- but you will need to configure the server and authentication.
94
-
95
- ``` xml
96
- <dependency >
97
- <groupId >org.wiremock.integrations.testcontainers</groupId >
98
- <artifactId >wiremock-testcontainers-module</artifactId >
99
- <version >${see the releases}</version >
100
- <scope >test</scope >
101
- </dependency >
102
- ```
103
109
104
110
</details >
105
111
0 commit comments