Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Unable to fetch transient dependency com.google.http-client:google-http-client:[1.19.0,2.0) #40

Open
attacco opened this issue Jul 22, 2016 · 4 comments

Comments

@attacco
Copy link

attacco commented Jul 22, 2016

My app-engine project depends on this library (using gradle):
compile com.google.appengine.tools:appengine-gcs-client:0.6

But, when i try to compile project with the command 'gradlew clean compileJava' i get an error:

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not find any version that matches com.google.http-client:google-http-client:[1.19.0,2.0).
  Versions that do not match:
      1.5.3-beta
      1.5.0-beta
  Searched in the following locations:
      https://repo1.maven.org/maven2/com/google/http-client/google-http-client/maven-metadata.xml
  Required by:
      :my-project:unspecified > com.google.appengine.tools:appengine-gcs-client:0.6

That's happens because file in path https://repo1.maven.org/maven2/com/google/http-client/google-http-client/maven-metadata.xml really outdated and contains information about only two versions 1.5.0-beta and 1.5.3-beta.

@attacco
Copy link
Author

attacco commented Jul 22, 2016

Curreny workaround is to exclude google-http-client module and then explicitly depend on it's version 1.22.0 (it's the latest of allowed versions):

compile ('com.google.appengine.tools:appengine-gcs-client:0.6') {
        exclude group: 'com.google.http-client', module: 'google-http-client'
    }
compile 'com.google.http-client:google-http-client:1.22.0'

@danilodeLuca
Copy link

Hello,

I'm suffering the same problem using maven. But my project has one dependency that uses "appengine-gcs-client:0.6" (not direct dependency)

maven version : Apache Maven 3.3.3
Java version : java version "1.8.0_20-ea"

My github open source project that is using it: https://github.com/feroult/yawp

Run "mvn clean install"
Stack:

[ERROR] Failed to execute goal on project yawp: Could not resolve dependencies for project io.yawp:yawp:jar:1.6.5: Failed to collect dependencies at com.google.appengine.tools:appengine-pipeline:jar:0.2.13 -> com.google.appengine.tools:appengine-gcs-client:jar:0.6 -> com.google.http-client:google-http-client:jar:[1.19.0,2.0): No versions available for com.google.http-client:google-http-client:jar:[1.19.0,2.0) within specified range -> [Help 1]

Regards,

Danilo

@attacco
Copy link
Author

attacco commented Jul 22, 2016

Related google-http-client issue:
googleapis/google-http-java-client#330

@aleemstreak
Copy link

We're having the same issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@aleemstreak @danilodeLuca @attacco and others