[ https://issues.apache.org/jira/browse/THRIFT-1919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jake Farrell reassigned THRIFT-1919: ------------------------------------ Assignee: Jake Farrell Thanks Ryan, will take a look at it > libthrift depends on httpcore-4.1.3 (directly) and httpcore-4.1.4 > (transitively) > -------------------------------------------------------------------------------- > > Key: THRIFT-1919 > URL: https://issues.apache.org/jira/browse/THRIFT-1919 > Project: Thrift > Issue Type: Bug > Components: Java - Library > Affects Versions: 0.9 > Environment: Windows x64 + Maven or Gradle. > Reporter: Ryan > Assignee: Jake Farrell > Priority: Minor > Labels: conflict, convergence, gradle, httpclient, httpcore, > libthrift, maven > > 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. > {code} > \--- 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 (*) > {code} > 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). > {code} > 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" > } > } > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira