Skip to content

Commit 2bcf21a

Browse files
committed
Use apache client in GCS repository
1 parent 2eb0d00 commit 2bcf21a

File tree

12 files changed

+848
-92
lines changed

12 files changed

+848
-92
lines changed

gradle/verification-metadata.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,11 @@
699699
<sha256 value="e395dd1765e3e6bceb0c610706bcf4128de84bd6e65cf1d4adbf998b4114161c" origin="Generated by Gradle"/>
700700
</artifact>
701701
</component>
702+
<component group="com.google.http-client" name="google-http-client-apache-v2" version="1.42.3">
703+
<artifact name="google-http-client-apache-v2-1.42.3.jar">
704+
<sha256 value="86d112c6f7e55c8f6d1bfbd47a02d25afd072c60a80dea8ef616fba278637600" origin="Generated by Gradle"/>
705+
</artifact>
706+
</component>
702707
<component group="com.google.http-client" name="google-http-client-appengine" version="1.42.3">
703708
<artifact name="google-http-client-appengine-1.42.3.jar">
704709
<sha256 value="3a876b1f704ac6d8500b8430b288dbce78c52dc18c43c008a587a7377bb81e2e" origin="Generated by Gradle"/>

modules/repository-gcs/build.gradle

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ dependencies {
5252
api 'io.opencensus:opencensus-api:0.31.1'
5353
api 'io.opencensus:opencensus-contrib-http-util:0.31.1'
5454
api 'com.google.apis:google-api-services-storage:v1-rev20220705-2.0.0'
55-
56-
testImplementation "org.apache.httpcomponents:httpclient:${versions.httpclient}"
57-
testImplementation "org.apache.httpcomponents:httpcore:${versions.httpcore}"
55+
api 'com.google.http-client:google-http-client-apache-v2:1.42.3'
56+
api "org.apache.httpcomponents:httpclient:${versions.httpclient}"
57+
api "org.apache.httpcomponents:httpcore:${versions.httpcore}"
5858

5959
testImplementation project(':test:fixtures:gcs-fixture')
6060
yamlRestTestImplementation project(':test:fixtures:gcs-fixture')
@@ -103,7 +103,6 @@ tasks.named("thirdPartyAudit").configure {
103103
)
104104

105105
ignoreMissingClasses(
106-
'com.google.api.client.http.apache.v2.ApacheHttpTransport',
107106
'com.google.appengine.api.datastore.Blob',
108107
'com.google.appengine.api.datastore.DatastoreService',
109108
'com.google.appengine.api.datastore.DatastoreServiceFactory',
@@ -129,48 +128,6 @@ tasks.named("thirdPartyAudit").configure {
129128
'org.apache.log.Logger',
130129
'javax.jms.Message',
131130

132-
// optional apache http client dependencies
133-
'org.apache.http.ConnectionReuseStrategy',
134-
'org.apache.http.Header',
135-
'org.apache.http.HttpEntity',
136-
'org.apache.http.HttpEntityEnclosingRequest',
137-
'org.apache.http.HttpHost',
138-
'org.apache.http.HttpRequest',
139-
'org.apache.http.HttpResponse',
140-
'org.apache.http.HttpVersion',
141-
'org.apache.http.RequestLine',
142-
'org.apache.http.StatusLine',
143-
'org.apache.http.client.AuthenticationHandler',
144-
'org.apache.http.client.HttpClient',
145-
'org.apache.http.client.HttpRequestRetryHandler',
146-
'org.apache.http.client.RedirectHandler',
147-
'org.apache.http.client.RequestDirector',
148-
'org.apache.http.client.UserTokenHandler',
149-
'org.apache.http.client.methods.HttpEntityEnclosingRequestBase',
150-
'org.apache.http.client.methods.HttpRequestBase',
151-
'org.apache.http.config.Registry',
152-
'org.apache.http.config.RegistryBuilder',
153-
'org.apache.http.conn.ClientConnectionManager',
154-
'org.apache.http.conn.ConnectionKeepAliveStrategy',
155-
'org.apache.http.conn.params.ConnManagerParams',
156-
'org.apache.http.conn.params.ConnRouteParams',
157-
'org.apache.http.conn.routing.HttpRoutePlanner',
158-
'org.apache.http.conn.scheme.PlainSocketFactory',
159-
'org.apache.http.conn.scheme.SchemeRegistry',
160-
'org.apache.http.conn.socket.PlainConnectionSocketFactory',
161-
'org.apache.http.conn.ssl.SSLSocketFactory',
162-
'org.apache.http.conn.ssl.X509HostnameVerifier',
163-
'org.apache.http.entity.AbstractHttpEntity',
164-
'org.apache.http.impl.client.DefaultHttpClient',
165-
'org.apache.http.impl.client.HttpClientBuilder',
166-
'org.apache.http.impl.conn.PoolingHttpClientConnectionManager',
167-
'org.apache.http.params.HttpConnectionParams',
168-
'org.apache.http.params.HttpParams',
169-
'org.apache.http.params.HttpProtocolParams',
170-
'org.apache.http.protocol.HttpContext',
171-
'org.apache.http.protocol.HttpProcessor',
172-
'org.apache.http.protocol.HttpRequestExecutor',
173-
174131
// commons-logging provided dependencies
175132
'javax.servlet.ServletContextEvent',
176133
'javax.servlet.ServletContextListener'

0 commit comments

Comments
 (0)