# How to use 6.4.0-SNAPSHOT in gradle?

**URL:** https://discuss.elastic.co/t/how-to-use-6-4-0-snapshot-in-gradle/145148
**Category:** Elasticsearch
**Created:** [August 20, 2018, 11:09am UTC](https://discuss.elastic.co/t/how-to-use-6-4-0-snapshot-in-gradle/145148 "2018-08-20T11:09:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![porunov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/porunov/32/32268_2.png) [@porunov](https://discuss.elastic.co/u/porunov)
#### Post date: [August 20, 2018, 11:09am UTC](https://discuss.elastic.co/t/how-to-use-6-4-0-snapshot-in-gradle/145148/1 "2018-08-20T11:09:23Z")

</div>

Hello,

I need to use some functionality from `6.4.0` version but I can't figure out how to use a snapshot version.

My gradle file looks like:

```
ext {
    ELASTICSEARCH = '6.4.0-SNAPSHOT'
}

repositories {
    mavenCentral()
    jcenter()
    maven {
        url 'https://snapshots.elastic.co/maven/'
    }
}

dependencies {
    compile "org.elasticsearch:elasticsearch:${ELASTICSEARCH}"
    compile "org.elasticsearch.client:elasticsearch-rest-high-level-client:${ELASTICSEARCH}"
    compile "org.elasticsearch.client:elasticsearch-rest-client:${ELASTICSEARCH}"
    compile "org.elasticsearch.client:transport:${ELASTICSEARCH}"
}

```

What am I doing wrong?

Best regards

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 17, 2018, 11:09am UTC](https://discuss.elastic.co/t/how-to-use-6-4-0-snapshot-in-gradle/145148/2 "2018-09-17T11:09:29Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
