# Dependency version changes for ES upgrade 5.5 to 6.5

**URL:** https://discuss.elastic.co/t/dependency-version-changes-for-es-upgrade-5-5-to-6-5/165237
**Category:** Elasticsearch
**Created:** [January 22, 2019, 1:14pm UTC](https://discuss.elastic.co/t/dependency-version-changes-for-es-upgrade-5-5-to-6-5/165237 "2019-01-22T13:14:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Suryadip\_Nag](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Suryadip\_Nag](https://discuss.elastic.co/u/Suryadip_Nag)
#### Post date: [January 22, 2019, 1:14pm UTC](https://discuss.elastic.co/t/dependency-version-changes-for-es-upgrade-5-5-to-6-5/165237/1 "2019-01-22T13:14:08Z")

</div>

We are upgrading ES from 5.5.1 to 6.5.4. We need to use the correct dependencies to support ES 6.5. Currently for 5.5 we have dependencies mentioned in build.gradle like below.

dependencies {  
compile group: 'org.elasticsearch', name : 'elasticsearch', version: '5.5.1'  
compile group: 'commons-codec', name: 'commons-codec', version: '1.10'  
compile group: 'com.google.guava', name: 'guava', version: '21.0'  
compile group: 'commons-net', name:'commons-net', version: '3.5+'  
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.7'  
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.2.3'  
testCompile group: 'org.jmockit', name: 'jmockit', version: '1.9'  
testCompile group: 'junit', name: 'junit', version: '4.12'  
}

task copyToLib(type: Copy) {  
into "$buildDir/libs"  
from configurations.runtime  
include 'guava-21.0.jar'  
}

Can you please tell me the relevant dependency versions for ES 6.5 where I put '?' sign 🙂

dependencies {  
compile group: 'org.elasticsearch', name : 'elasticsearch', version: '6.5.4'  
compile group: 'commons-codec', name: 'commons-codec', version: '?'  
compile group: 'com.google.guava', name: 'guava', version: '?'  
compile group: 'commons-net', name:'commons-net', version: '?'  
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '?'  
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '?'  
testCompile group: 'org.jmockit', name: 'jmockit', version: '?'  
testCompile group: 'junit', name: 'junit', version: '?'  
}

task copyToLib(type: Copy) {  
into "$buildDir/libs"  
from configurations.runtime  
include '?'  
}

And last but not least, if we dont change the versions of other dependencies and we continue to use the same versions which were used for ES 5.5.1 will it be problem?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [January 22, 2019, 1:31pm UTC](https://discuss.elastic.co/t/dependency-version-changes-for-es-upgrade-5-5-to-6-5/165237/2 "2019-01-22T13:31:15Z")

</div>

As you are using a dependency manager, there is no need to declare other libs.

```auto
dependencies {
    compile 'org.elasticsearch.client:elasticsearch-rest-high-level-client:6.5.4'
}

```

If you are using the Rest client (recommended).

---

<div class="post-metadata">

### Author: ![Suryadip\_Nag](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Suryadip\_Nag](https://discuss.elastic.co/u/Suryadip_Nag)
#### Post date: [January 22, 2019, 2:04pm UTC](https://discuss.elastic.co/t/dependency-version-changes-for-es-upgrade-5-5-to-6-5/165237/3 "2019-01-22T14:04:09Z")

</div>

Not sure about the dependency manager, have to check.

Yes we are using rest client. So you are saying if we have one dependency mentioned  
elasticsearch-rest-high-level-client:6.5.4 then we don't need to mention other dependencies like log4j, guava etc separately?

---

<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: [February 19, 2019, 2:04pm UTC](https://discuss.elastic.co/t/dependency-version-changes-for-es-upgrade-5-5-to-6-5/165237/4 "2019-02-19T14:04:09Z")

</div>

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