How can I use SNAPSHOT version of elasticsearch-rest-high-level-client'

How can I use SNAPSHOT version of org.elasticsearch.client:elasticsearch-rest-high-level-client?
What SNAPSHOT versions are available?

I used the maven repository https://snapshots.elastic.co/maven/ described in the following page: https://www.elastic.co/guide/en/elasticsearch/client/java-rest/master/java-rest-high-getting-started-maven.html

But, I could not manage to use SNAPSHOT versions.
I'm using gradle for build.

Tried version 6.4.0-SNAPSHOT, but observed the following errors:

* What went wrong:
Execution failed for task ':server:kaptGenerateStubsKotlin'.
> Could not resolve all files for configuration ':server:compileClasspath'.
   > Could not resolve org.elasticsearch.client:elasticsearch-rest-high-level-client:6.4.0-SNAPSHOT.
     Required by:
         project :server
      > Could not resolve org.elasticsearch.client:elasticsearch-rest-high-level-client:6.4.0-SNAPSHOT.
         > inconsistent module metadata found. Descriptor: org.elasticsearch.client:rest-high-level:6.4.0-SNAPSHOT Errors: bad module name: expected='elasticsearch-rest-high-level
-client' found='rest-high-level'

Sorry for your troubles. I believe this will be fixed by https://github.com/elastic/elasticsearch/pull/32731.

1 Like

Thank you! The issue has been resolved.

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