-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Republish the fixed apache extensions as google-http-client-apache-v2 #637
Conversation
Deprecates the package com.google.api.client.http.apache Deprecates the com.google.api.client.http.apache.AppacheHttpTransport class.
…n the apache artifact
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the version needs to move to 130.0-SNAPSHOT before or during this PR. Right now there's a mix of 1.29.2 and 1.30.0 here.
<version>2.1.2-SNAPSHOT</version><!-- {x-version-update:google-http-client-apache:current} --> | ||
<name>Apache HTTP transport for the Google HTTP Client Library for Java.</name> | ||
<artifactId>google-http-client-apache-v2</artifactId> | ||
<version>1.29.2-SNAPSHOT</version><!-- {x-version-update:google-http-client-apache-v2:current} --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we jump to 1.30.0-SNAPSHOT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our release tools will correctly version bump all of the artifacts. This should be included in the 1.30.0 release.
ApacheHttpRequest(HttpClient httpClient, HttpRequestBase request) { | ||
this.httpClient = httpClient; | ||
this.request = request; | ||
this.requestConfig = RequestConfig.custom().setRedirectsEnabled(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the sort of detail—no redirects—it's useful to include in library documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is more of an implementation detail. google-http-client configures redirects so we turn off the underlying automatic redirects in the Apache client.
...client-apache-v2/src/main/java/com/google/api/client/http/apache/v2/ApacheHttpTransport.java
Outdated
Show resolved
Hide resolved
...client-apache-v2/src/main/java/com/google/api/client/http/apache/v2/ApacheHttpTransport.java
Outdated
Show resolved
Hide resolved
...client-apache-v2/src/main/java/com/google/api/client/http/apache/v2/ApacheHttpTransport.java
Outdated
Show resolved
Hide resolved
...nt-apache-v2/src/test/java/com/google/api/client/http/apache/v2/ApacheHttpTransportTest.java
Outdated
Show resolved
Hide resolved
|
||
ApacheHttpTransport transport = new ApacheHttpTransport(mockClient); | ||
|
||
// Test GET. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should probably be seven separate methods with a common setup here.
1.29.0 reverted the changes that split the
google-http-client-apache
artifact out ofgoogle-http-client
. Rather than "breaking" the original artifact, we will provide a new artifactgoogle-http-client-apache-v2
which provides a new packagecom.google.api.client.http.apache.v2
.This also removes the
google-http-client-apache
andgoogle-http-client-apache-legacy
modules. The legacy code still exists in the basegoogle-http-client
artifact and is now deprecated.The new artifact will be versioned the same as the rest of the packages (so will start at 1.30.0 when first released).