Skip to content

Commit 6067cb6

Browse files
committed
Update README
1 parent cac518e commit 6067cb6

File tree

1 file changed

+23
-15
lines changed

1 file changed

+23
-15
lines changed

README.md

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,33 @@ Building the API client library requires:
1111

1212
## Installation
1313

14-
Add this dependency to your project's POM:
14+
Installation options for Maven and Gradle using Maven Central:
1515

1616
```xml
17-
<repositories>
18-
<repository>
19-
<id>sonatype-release</id>
20-
<url>https://s01.oss.sonatype.org/content/repositories/releases/</url>
21-
</repository>
22-
</repositories>
23-
24-
<dependencies>
25-
<dependency>
26-
<groupId>co.unit</groupId>
27-
<artifactId>java-sdk</artifactId>
28-
<version>0.2.2</version>
29-
</dependency>
30-
</dependencies>
17+
<!-- Maven (no repository block needed; Maven Central is default) -->
18+
<dependency>
19+
<groupId>co.unit</groupId>
20+
<artifactId>java-sdk</artifactId>
21+
<version>YOUR_VERSION</version>
22+
<!-- replace YOUR_VERSION with the latest released version -->
23+
<!-- https://central.sonatype.com/artifact/co.unit/java-sdk -->
24+
25+
</dependency>
3126
```
3227

28+
```groovy
29+
// Gradle
30+
repositories {
31+
mavenCentral()
32+
}
33+
34+
dependencies {
35+
implementation 'co.unit:java-sdk:YOUR_VERSION'
36+
}
37+
```
38+
39+
See the [Maven Central artifact page](https://central.sonatype.com/artifact/co.unit/java-sdk) for the latest version.
40+
3341
## Basic Usage Examples
3442

3543
For more examples of basic usage, see the [Test suites](https://github.com/unit-finance/unit-openapi-java-sdk/tree/main/src/test/java/unit/java/sdk) or [API Reference documentation](https://docs.unit.co/).

0 commit comments

Comments
 (0)