Skip to content

Commit

Permalink
Document using Maven Central packages as a default option + Change gr…
Browse files Browse the repository at this point in the history
…oupId and artifactId (#81)

Placeholder for #71 once it is ready to go
  • Loading branch information
oleg-nenashev authored Nov 3, 2023
1 parent 81a2306 commit d802607
Showing 1 changed file with 42 additions and 9 deletions.
51 changes: 42 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,36 @@ the `GET` won't have any knowledge of the previous post.

### Gradle

```groovy
dependencies {
testImplementation("org.wiremock.extensions:wiremock-state-extension:<your-version>")
}
```

### Maven

```xml
<dependencies>
<dependency>
<groupId>org.wiremock.extensions</groupId>
<artifactId>wiremock-state-extension</artifactId>
<version>your-version</version>
<scope>test</scope>
</dependency>
</dependencies>
```

### GitHub Packages

You can also install the dependencies from GitHub Packages.
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
add authentication to GitHub packages.

<details>
<summary>
Use GitHub Packages in Gradle
</summary>

```groovy
repositories {
maven {
Expand All @@ -191,15 +221,16 @@ repositories {
dependencies {
testImplementation("org.wiremock:wiremock-state-extension:<your-version>")
testImplementation("org.wiremock.extensions:wiremock-state-extension:<your-version>")
}
```

### Maven

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
add authentication to GitHub packages.

</details>

<details>
<summary>
Use GitHub Packages in Maven
</summary>
```xml

<repositories>
Expand All @@ -211,15 +242,17 @@ add authentication to GitHub packages.
</repositories>

<dependencies>
<dependency>
<groupId>org.wiremock</groupId>
<dependency>
<groupId>org.wiremock.extensions</groupId>
<artifactId>wiremock-state-extension</artifactId>
<version>your-version</version>
<scope>test</scope>
</dependency>
</dependency>
</dependencies>
```

</details>

## Register extension

### Java
Expand Down

0 comments on commit d802607

Please sign in to comment.