Reputation: 1112
I have configured below in build.gradle
compile group: 'org.elasticsearch', name: 'elasticsearch', version: '6.3.2'
compile 'org.elasticsearch.client:elasticsearch-rest-high-level-client:6.3.2'
compile group: 'org.elasticsearch.client', name: 'elasticsearch-rest-client', version: '6.3.2'
but it internally downloads 6.8.5 version also. I am not intended for this version(6.8.5). Can someone please help.
Upvotes: 0
Views: 194
Reputation: 32376
By excluding the problematic(not intended) dependency you can solve the issue. Summary: in a dependent jar elastic version 6.3.2 was mention but in main application 6.8.5 was mention that's why both were gets downloaded. OP updated 6.3.2 in the main application also since 6.8.5 not really required for our application.
Elasticsearch specific version never downloads its another version as a dependency and matter of the fact is that in the latest version Elasticsearch server version doesn't match with even minor version of the client, ie Elasticsearch 7.6 server will not work with elasticsearch 7.3 client.
Upvotes: 1