Skip to content

Commit

Permalink
[Step 2] Update non-third party change for jackson2
Browse files Browse the repository at this point in the history
Follow up for bazelbuild#15215 and Step two for bazelbuild#15176

Closes bazelbuild#15295.

PiperOrigin-RevId: 443050332
  • Loading branch information
ThomasCJY authored and coeuvre committed May 2, 2022
1 parent 355ad7c commit a965c5a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import build.bazel.remote.execution.v2.Tree;
import build.bazel.remote.execution.v2.UpdateActionResultRequest;
import com.google.api.client.json.GenericJson;
import com.google.api.client.json.jackson2.JacksonFactory;
import com.google.api.client.json.gson.GsonFactory;
import com.google.bytestream.ByteStreamGrpc.ByteStreamImplBase;
import com.google.bytestream.ByteStreamProto.QueryWriteStatusRequest;
import com.google.bytestream.ByteStreamProto.QueryWriteStatusResponse;
Expand Down Expand Up @@ -213,7 +213,7 @@ protected GrpcCacheClient newClient(
json.put("client_secret", "foo");
json.put("refresh_token", "bar");
Scratch scratch = new Scratch();
scratch.file(authTlsOptions.googleCredentials, new JacksonFactory().toString(json));
scratch.file(authTlsOptions.googleCredentials, new GsonFactory().toString(json));

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

0 comments on commit a965c5a

Please sign in to comment.