Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1919

libthrift depends on httpcore-4.1.3 (directly) and httpcore-4.1.4 (transitively)

    XMLWordPrintableJSON

    Details

      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"
          }
      }
      

        Attachments

          Activity

            People

            • Assignee:
              jfarrell Jake Farrell
              Reporter:
              ryan29 Ryan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: