Skip to content

Commit d802607

Browse files
Document using Maven Central packages as a default option + Change groupId and artifactId (#81)
Placeholder for #71 once it is ready to go
1 parent 81a2306 commit d802607

File tree

1 file changed

+42
-9
lines changed

1 file changed

+42
-9
lines changed

README.md

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,36 @@ the `GET` won't have any knowledge of the previous post.
182182

183183
### Gradle
184184

185+
```groovy
186+
dependencies {
187+
testImplementation("org.wiremock.extensions:wiremock-state-extension:<your-version>")
188+
}
189+
```
190+
191+
### Maven
192+
193+
```xml
194+
<dependencies>
195+
<dependency>
196+
<groupId>org.wiremock.extensions</groupId>
197+
<artifactId>wiremock-state-extension</artifactId>
198+
<version>your-version</version>
199+
<scope>test</scope>
200+
</dependency>
201+
</dependencies>
202+
```
203+
204+
### GitHub Packages
205+
206+
You can also install the dependencies from GitHub Packages.
207+
Follow the instructions on [GitHub Docs](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry) to
208+
add authentication to GitHub packages.
209+
210+
<details>
211+
<summary>
212+
Use GitHub Packages in Gradle
213+
</summary>
214+
185215
```groovy
186216
repositories {
187217
maven {
@@ -191,15 +221,16 @@ repositories {
191221
192222
193223
dependencies {
194-
testImplementation("org.wiremock:wiremock-state-extension:<your-version>")
224+
testImplementation("org.wiremock.extensions:wiremock-state-extension:<your-version>")
195225
}
196226
```
197227

198-
### Maven
199-
200-
Follow the instructions on [GitHub Docs](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry) to
201-
add authentication to GitHub packages.
202-
228+
</details>
229+
230+
<details>
231+
<summary>
232+
Use GitHub Packages in Maven
233+
</summary>
203234
```xml
204235

205236
<repositories>
@@ -211,15 +242,17 @@ add authentication to GitHub packages.
211242
</repositories>
212243

213244
<dependencies>
214-
<dependency>
215-
<groupId>org.wiremock</groupId>
245+
<dependency>
246+
<groupId>org.wiremock.extensions</groupId>
216247
<artifactId>wiremock-state-extension</artifactId>
217248
<version>your-version</version>
218249
<scope>test</scope>
219-
</dependency>
250+
</dependency>
220251
</dependencies>
221252
```
222253

254+
</details>
255+
223256
## Register extension
224257

225258
### Java

0 commit comments

Comments
 (0)