How to use 6.4.0-SNAPSHOT in gradle?

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

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