Skip to content

Commit ffc369e

Browse files
Merge pull request #86 from wiremock/maven-central
Release the module to Maven Central
2 parents 2e07464 + d84a37a commit ffc369e

File tree

1 file changed

+38
-32
lines changed

1 file changed

+38
-32
lines changed

README.md

+38-32
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
> and there might be incompatible changes before the 1.0 release.
1010
> Contributions are welcome!
1111
12-
This module allows provisioning the WireMock server
12+
This module allows provisioning the WireMock server
1313
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).
1515

1616
While you can run [WireMock Java](https://github.com/wiremock/wiremock)
1717
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!
3434

3535
### Importing the dependency
3636

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.
4239

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>
4470

4571
```xml
4672
<dependencies>
@@ -61,14 +87,14 @@ For the moment, you can use the authenticated GitHub Packages server or
6187
</repositories>
6288
```
6389

90+
</details>
91+
6492
<details>
6593
<summary>
66-
Gradle / JitPack
94+
JitPack / Gradle
6795
</summary>
6896

69-
#### Gradle / JitPack
70-
71-
```groovy
97+
```gradle
7298
allprojects {
7399
repositories {
74100
maven { url 'https://jitpack.io' }
@@ -80,26 +106,6 @@ Gradle / JitPack
80106
}
81107
82108
```
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-
```
103109

104110
</details>
105111

0 commit comments

Comments
 (0)