[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#959829: [covid-19] Help needed to finalise bazel predependency google-api-client-java



Hi Sudip,

On Wed, Jun 17, 2020 at 11:42:52AM +0100, Sudip Mukherjee wrote:
> 
> I have taken the liberty to push to "tmancill" branch and the issue

As I tried to express:  I wished you all would take the freedom to
simply push to the master branch which is perfectly fine for me. ;-)
Thanks a lot for providing some fix in any case!

> with "com.google.api.client.util" is now resolved. It needs to depend
> on "libgoogle-oauth-client-java" which is still in NEW.

I've a local repository and can deal with this.

> But, it now fails with:
> 
> google-api-client/src/main/java/com/google/api/client/googleapis/services/AbstractGoogleClientRequest.java:[435,16]
> cannot find symbol
> [ERROR]   symbol:   method setResponseReturnRawInputStream(boolean)
> [ERROR]   location: variable httpRequest of type
> com.google.api.client.http.HttpRequest
> 
> And, indeed https://salsa.debian.org/java-team/google-http-client-java/-/blob/master/google-http-client/src/main/java/com/google/api/client/http/HttpRequest.java
> is not having the method "setResponseReturnRawInputStream". And, it
> seems the packaged version of libgoogle-http-client-java in Debian is
> 1.27 and "setResponseReturnRawInputStream" was added in v1.29.0. So,
> we will need to update  libgoogle-http-client-java to 1.29.0 atleast.

I somehow ignored Olek's hint that we should rather start with version
1.27 to avoid issues with circular (and more) dependencies.  That's
why I downgraded the version in Git now and merged tmancill branch to
master. 

I have the feeling we are coming closer to a solution iteratively now
but there are some remaining errors unfortunately:


...
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ google-api-client ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 27 source files to /build/google-api-client-java-1.27.1/google-api-client/target/test-classes
[INFO] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java: Some input files use or override a deprecated API.
[INFO] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java: Recompile with -Xlint:deprecation for details.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[29,38] package com.google.api.client.protobuf does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[182,43] package ErrorOutput does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[192,38] package ErrorOutput does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[228,39] package MockData does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[235,35] package MockData does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[244,39] package MockData does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[251,35] package MockData does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/auth/oauth2/CloudShellCredentialTest.java:[36,39] package com.google.api.client.json.gson does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/auth/oauth2/GoogleClientSecretsTest.java:[18,39] package com.google.api.client.json.gson does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[196,20] package ErrorOutput does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[207,25] package ErrorOutput does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[333,50] package MockData does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[339,50] package MockData does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[348,41] package ErrorOutput does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[345,36] package ErrorOutput does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[344,57] package ErrorOutput does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[506,26] cannot find symbol
  symbol:   class ProtoObjectParser
  location: class com.google.api.client.googleapis.batch.BatchRequestTest
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[522,44] package MockData does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[522,70] package ErrorOutput does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[524,44] package MockData does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/batch/BatchRequestTest.java:[524,70] package ErrorOutput does not exist
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/auth/oauth2/CloudShellCredentialTest.java:[80,36] cannot find symbol
  symbol:   variable GsonFactory
  location: class com.google.api.client.googleapis.auth.oauth2.CloudShellCredentialTest
[ERROR] /build/google-api-client-java-1.27.1/google-api-client/src/test/java/com/google/api/client/googleapis/auth/oauth2/GoogleClientSecretsTest.java:[38,38] cannot find symbol
  symbol:   class GsonFactory
  location: class com.google.api.client.googleapis.auth.oauth2.GoogleClientSecretsTest
[INFO] 23 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Parent for the Google API Client Library for Java 1.27.1:
[INFO] 
[INFO] Parent for the Google API Client Library for Java .. SUCCESS [  0.005 s]
[INFO] Google APIs Client Library for Java ................ FAILURE [  1.869 s]


Any further patches (preferably in master branch but anywhere else is fine
as well) would be really appreciated.

Kind regards

       Andreas.

-- 
http://fam-tille.de


Reply to: