Added Gradle dependency

This commit is contained in:
keithhc2 2021-10-22 11:57:44 -07:00
parent 0d78441e76
commit 9022db56eb
1 changed files with 9 additions and 0 deletions

View File

@ -22,6 +22,15 @@ To start using the OpenSearch Java client, ensure that you have the following de
</dependency>
```
If you're using Gradle, add the following dependencies to your project.
```
dependencies {
implementation 'org.opensearch.client:opensearch-rest-client: {{site.opensearch_version}}'
implementation 'org.opensearch.client:opensearch-java:0.1.0'
}
```
You can now start your OpenSearch cluster.
The following example uses credentials that come with the default OpenSearch configuration. If you're using the OpenSearch Java client with your own OpenSearch cluster, be sure to change the code to use your own credentials.