Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.9
-
Windows x64 + Maven or Gradle.
Description
I believe this is the same issue as THRIFT-1693, but with different versions. There's a direct dependency on both httpclient and httpcore version 4.1.3 in thriftlib, but httpclient:4.1.3 has a dependency on httpcore:4.1.4.
Here are the dependencies Gradle shows me.
\--- org.apache.thrift:libthrift:0.9.0 +--- org.slf4j:slf4j-api:1.5.8 +--- commons-lang:commons-lang:2.5 +--- org.apache.httpcomponents:httpclient:4.1.3 | +--- org.apache.httpcomponents:httpcore:4.1.4 | +--- commons-logging:commons-logging:1.1.1 | \--- commons-codec:commons-codec:1.4 \--- org.apache.httpcomponents:httpcore:4.1.3 -> 4.1.4 (*)
Here's a copy of the dependency resolution section of my Gradle build in case anyone needs a short term workaround. The force option is what allows the direct dependency to be overridden to 4.1.4 (shown with a * in the above snippet).
all { resolutionStrategy { // fails when multiple versions of the same dependency exist (this includes // transitive dependencies) failOnVersionConflict() // don't cache snapshot / changing modules cacheChangingModulesFor 0, 'seconds' // force httpcore to 4.1.4 to avoid version conflict force "org.apache.httpcomponents:httpcore:4.1.4" } }