Skip to content

Commit f0213bb

Browse files
coeuvrejchen-scThomasCJY
authored
[5.2] Upgrade Google Auth Version (bazelbuild#15383)
* [Step 1] Upgrade Google Auth Version third party only changes gson add back jackson Partial commit for third_party/*, see bazelbuild#15215. Closes bazelbuild#15215 Signed-off-by: Yun Peng <[email protected]> * [Step 2] Update non-third party change for jackson2 Follow up for bazelbuild#15215 and Step two for bazelbuild#15176 Closes bazelbuild#15295. PiperOrigin-RevId: 443050332 * clean up Partial commit for third_party/*, see bazelbuild#15301. Closes: bazelbuild#15301 Signed-off-by: Yun Peng <[email protected]> Co-authored-by: Thomas Chen <[email protected]> Co-authored-by: ThomasCJY <[email protected]>
1 parent b30b3ed commit f0213bb

11 files changed

+7
-15
lines changed

src/test/java/com/google/devtools/build/lib/remote/GrpcCacheClientTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import build.bazel.remote.execution.v2.Tree;
4040
import build.bazel.remote.execution.v2.UpdateActionResultRequest;
4141
import com.google.api.client.json.GenericJson;
42-
import com.google.api.client.json.jackson2.JacksonFactory;
42+
import com.google.api.client.json.gson.GsonFactory;
4343
import com.google.bytestream.ByteStreamGrpc.ByteStreamImplBase;
4444
import com.google.bytestream.ByteStreamProto.QueryWriteStatusRequest;
4545
import com.google.bytestream.ByteStreamProto.QueryWriteStatusResponse;
@@ -213,7 +213,7 @@ protected GrpcCacheClient newClient(
213213
json.put("client_secret", "foo");
214214
json.put("refresh_token", "bar");
215215
Scratch scratch = new Scratch();
216-
scratch.file(authTlsOptions.googleCredentials, new JacksonFactory().toString(json));
216+
scratch.file(authTlsOptions.googleCredentials, new GsonFactory().toString(json));
217217

218218
CallCredentialsProvider callCredentialsProvider;
219219
try (InputStream in = scratch.resolve(authTlsOptions.googleCredentials).getInputStream()) {

third_party/BUILD

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ distrib_java_import(
169169
enable_distributions = ["debian"],
170170
jars = [
171171
"api_client/google-api-client-1.22.0.jar",
172-
"api_client/google-api-client-jackson2-1.22.0.jar",
172+
"api_client/google-api-client-gson-1.22.0.jar",
173173
"api_client/google-http-client-1.22.0-SNAPSHOT.jar",
174-
"api_client/google-http-client-jackson2-1.22.0.jar",
174+
"api_client/google-http-client-gson-1.22.0.jar",
175175
],
176176
runtime_deps = [
177-
":jackson2",
177+
":gson",
178178
],
179179
)
180180

@@ -217,8 +217,8 @@ distrib_java_import(
217217
name = "auth",
218218
enable_distributions = ["debian"],
219219
jars = [
220-
"auth/google-auth-library-oauth2-http-0.17.1.jar",
221-
"auth/google-auth-library-credentials-0.17.1.jar",
220+
"auth/google-auth-library-oauth2-http-1.6.0.jar",
221+
"auth/google-auth-library-credentials-1.6.0.jar",
222222
],
223223
runtime_deps = [
224224
":api_client",
@@ -410,14 +410,6 @@ java_import(
410410
],
411411
)
412412

413-
distrib_java_import(
414-
name = "jackson2",
415-
enable_distributions = ["debian"],
416-
jars = [
417-
"jackson2/jackson-core-2.8.6.jar",
418-
],
419-
)
420-
421413
distrib_java_import(
422414
name = "jcip_annotations",
423415
enable_distributions = ["debian"],
2.59 KB
Binary file not shown.
-2.63 KB
Binary file not shown.
8.35 KB
Binary file not shown.
-6.56 KB
Binary file not shown.
-5.53 KB
Binary file not shown.
5.82 KB
Binary file not shown.
-101 KB
Binary file not shown.
193 KB
Binary file not shown.

0 commit comments

Comments
 (0)