From d84a37a876df5c080a1a283cdd99a60c26f4253e Mon Sep 17 00:00:00 2001 From: Oleg Nenashev Date: Thu, 26 Oct 2023 01:32:17 +0200 Subject: [PATCH] Release the module to Maven Central --- README.md | 70 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 38 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index da07de1..41d0dcc 100644 --- a/README.md +++ b/README.md @@ -9,9 +9,9 @@ > and there might be incompatible changes before the 1.0 release. > Contributions are welcome! -This module allows provisioning the WireMock server +This module allows provisioning the WireMock server as a standalone container -within your unit test, based on [WireMock Docker](https://github.com/wiremock/wiremock-docker). +within your unit tests, based on [WireMock Docker](https://github.com/wiremock/wiremock-docker). While you can run [WireMock Java](https://github.com/wiremock/wiremock) 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! ### Importing the dependency -At the moment the module is published to GitHub Packages only, -see [Issue #56](https://github.com/wiremock/wiremock-testcontainers-java/issues/56) -for publishing to Maven Central. -For the moment, you can use the authenticated GitHub Packages server or -[JitPack](https://jitpack.io/) to add the dependency in your projects. +The module is published to Maven Central and GitHub Packages. +You can also use [JitPack](https://jitpack.io/) to add the dependency in your projects. -#### Maven / JitPack +#### Maven + +```xml + + org.wiremock.integrations.testcontainers + wiremock-testcontainers-module + ${see the releases} + test + +``` + +#### Gradle + +```gradle +dependencies { + testImplementation 'org.wiremock.integrations.testcontainers:wiremock-testcontainers-module:${wiremock-testcontainers.version}' +} +``` + +#### GitHub Packages + +GitHub Packages uses the official Maven coordinates (same as Maven Central above), +but you will need to configure the server and authentication. + +#### JitPack + +
+ +JitPack / Maven + ```xml @@ -61,14 +87,14 @@ For the moment, you can use the authenticated GitHub Packages server or ``` +
+
-Gradle / JitPack +JitPack / Gradle -#### Gradle / JitPack - -```groovy +```gradle allprojects { repositories { maven { url 'https://jitpack.io' } @@ -80,26 +106,6 @@ Gradle / JitPack } ``` -
- -
- -Maven / GitHub Packages - - -#### Maven / GitHub Packages - -GitHub Packages uses the official Maven coordinates, -but you will need to configure the server and authentication. - -```xml - - org.wiremock.integrations.testcontainers - wiremock-testcontainers-module - ${see the releases} - test - -```