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
google-http-client 1.28.0 missing com.google.api.client.http.apache #576
Comments
We had to break the apache adapter into its own artifact google-http-client-apache and provide 2 implementations - 1.28.0 for legacy versions of Apache HttpClient and 2.0.0 for modern versions. The google-http-client-apache artifact includes the dependency on org.apache.httpcomponents:httpclient. The legacy version was necessary for internal usage. https://github.com/googleapis/google-http-java-client/releases/tag/v1.28.0 |
Thanks. I put One thing I discovered I think worth documenting here: I see 1.28.0 pulls in
This cause a lot of errors in my project, since the |
Also, my last question: With 1.27.0, many classes and methods such as |
Re guava: we chose the android flavor as we need to support Java 7 still and 26.0 to match grpc's dependency. It looks like the As for the methods around You may need to change your code anyways because the newer implementations of Apache HttpClient do not let you modify a |
Thanks for the info. Closing. |
I have some annoyance with the new .setSSLContext(SslUtils.trustAllSSLContext())
.setSSLHostnameVerifier(new NoopHostnameVerifier()) To achieve this, I need to duplicate the code of SocketConfig socketConfig =
SocketConfig.custom()
.setRcvBufSize(8192)
.setSndBufSize(8192)
.build();
PoolingHttpClientConnectionManager connectionManager =
new PoolingHttpClientConnectionManager(-1, TimeUnit.MILLISECONDS);
connectionManager.setValidateAfterInactivity(-1);
HttpClient httpClient = HttpClientBuilder.create()
.useSystemProperties()
// not calling this, since I need custom "SSLContext" and "HostnameVerifier"
// .setSSLSocketFactory(SSLConnectionSocketFactory.getSocketFactory())
.setDefaultSocketConfig(socketConfig)
.setMaxConnTotal(200)
.setMaxConnPerRoute(20)
.setRoutePlanner(new SystemDefaultRoutePlanner(ProxySelector.getDefault()))
.setConnectionManager(connectionManager)
.disableRedirectHandling()
.disableAutomaticRetries()
// Just because of these two, I have to duplicate the whole code from google-http-client-apache
.setSSLContext(SslUtils.trustAllSSLContext())
.setSSLHostnameVerifier(new NoopHostnameVerifier())
.build();
... = new ApacheHttpTransport(httpClient); Any idea or advice on what the best option would be for me? |
@chingor13 This change keeps Maven 3.6.1 and later from spamming our CI logs with page after page of lists of artifacts it's downloading that makes it much harder to find the actual test output. Source-Author: Elliotte Rusty Harold <elharo@users.noreply.github.com> Source-Date: Thu Feb 18 19:58:59 2021 +0000 Source-Repo: googleapis/synthtool Source-Sha: 1aeca92e4a38f47134cb955f52ea76f84f09ff88 Source-Link: googleapis/synthtool@1aeca92
🤖 I have created a release \*beep\* \*boop\* --- ## [0.24.0](https://www.github.com/googleapis/google-auth-library-java/compare/v0.23.0...v0.24.0) (2021-02-19) ### Features * add workload identity federation support ([googleapis#547](https://www.github.com/googleapis/google-auth-library-java/issues/547)) ([b8dde1e](https://www.github.com/googleapis/google-auth-library-java/commit/b8dde1e43f86a0a00741790c12d73f6cbda6251d)) ### Bug Fixes * don't log downloads ([googleapis#576](https://www.github.com/googleapis/google-auth-library-java/issues/576)) ([6181030](https://www.github.com/googleapis/google-auth-library-java/commit/61810306dc0e18500a4a6b2704e00842fbecd879)) ### Documentation * add instructions for using workload identity federation ([googleapis#564](https://www.github.com/googleapis/google-auth-library-java/issues/564)) ([2142db3](https://www.github.com/googleapis/google-auth-library-java/commit/2142db314666f298071ae30a7419b00d48d87476)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
com.google.api.client.http.apache
present in 1.27.0:However, missing in 1.28.0:
Also, after upgrading to 1.28.0, I have to manually add the
org.apache.httpcomponents:httpclient
dependency to resolveorg.apache.http.client.HttpClient
, etc. Is this expected?The text was updated successfully, but these errors were encountered: