﻿---
title: Maven repository for Elasticsearch Java REST client
description: The low-level Java REST client is hosted on Maven Central. The minimum Java version required is 1.8. The low-level REST client is subject to the same...
url: https://www.elastic.co/elastic/docs-builder/docs/2545/reference/elasticsearch/clients/java/transport/rest-client/usage/maven
products:
  - Elasticsearch
  - Elasticsearch Client
  - Elasticsearch Java Client
---

# Maven repository for Elasticsearch Java REST client
<note>
  This is the legacy RestClient. Please migrate to [Rest5Client](https://www.elastic.co/elastic/docs-builder/docs/2545/reference/elasticsearch/clients/java/transport/rest5-client), a drop-in replacement with an up-to-date http library.
</note>

The low-level Java REST client is hosted on [Maven Central](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.elasticsearch.client%22). The minimum Java version required is `1.8`.
The low-level REST client is subject to the same release cycle as Elasticsearch. Replace the version with the desired client version, first released with `5.0.0-alpha4`. There is no relation between the client version and the Elasticsearch version that the client can communicate with. The low-level REST client is compatible with all Elasticsearch versions.
If you are looking for a SNAPSHOT version, the Elastic Maven Snapshot repository is available at [https://snapshots.elastic.co/maven/](https://snapshots.elastic.co/maven/).

## Maven configuration

Here is how you can configure the dependency using maven as a dependency manager. Add the following to your `pom.xml` file:
```xml
<dependency>
    <groupId>org.elasticsearch.client</groupId>
    <artifactId>elasticsearch-rest-client</artifactId>
    <version>9.2.0</version>
</dependency>
```


## Gradle configuration

Here is how you can configure the dependency using gradle as a dependency manager. Add the following to your `build.gradle` file:
```groovy
dependencies {
    compile 'org.elasticsearch.client:elasticsearch-rest-client:9.2.0'
}
```