update readme with better gradle instruction (#10740)

This commit is contained in:
William Cheng
2021-10-31 23:10:46 +08:00
committed by GitHub
parent 8551b0af49
commit 68b5f866ff
5 changed files with 45 additions and 10 deletions

View File

@@ -19,7 +19,7 @@
Building the API client library requires:
1. Java {{#java8}}1.8{{/java8}}{{^java8}}1.7{{/java8}}+
2. Maven/Gradle
2. Maven (3.8.3+)/Gradle (7.2+)
## Installation
@@ -55,7 +55,14 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:
```groovy
compile "{{{groupId}}}:{{{artifactId}}}:{{{artifactVersion}}}"
repositories {
mavenCentral() // Needed if the '{{{artifactId}}}' jar has been published to maven central.
mavenLocal() // Needed if the '{{{artifactId}}}' jar has been published to the local maven repo.
}
dependencies {
implementation "{{{groupId}}}:{{{artifactId}}}:{{{artifactVersion}}}"
}
```
### Others