GoogleCloudPlatform / appengine-gcs-client

App Engine-Cloud Storage custom client library
Apache License 2.0
124 stars 112 forks source link

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

Open attacco opened 8 years ago

attacco commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

Related google-http-client issue: https://github.com/google/google-http-java-client/issues/330

aleemstreak commented 8 years ago

We're having the same issue