-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Replacing Jackson Factory with Gson Factory #32148
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -23,7 +23,7 @@ | |||||
import com.google.api.client.http.HttpRequestInitializer; | ||||||
import com.google.api.client.http.HttpTransport; | ||||||
import com.google.api.client.json.JsonFactory; | ||||||
import com.google.api.client.json.jackson2.JacksonFactory; | ||||||
import com.google.api.client.json.gson.GsonFactory; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From the precommits (https://github.com/apache/beam/actions/runs/10342154630/job/28624760220?pr=32148), I see the following error:
I think we need to replace the jackson artifact with the gson one here -
(example where we've already included the gson library - beam/sdks/java/io/solace/build.gradle Line 50 in 780eef9
|
||||||
import com.google.api.services.storage.Storage; | ||||||
import com.google.auth.Credentials; | ||||||
import com.google.auth.http.HttpCredentialsAdapter; | ||||||
|
@@ -53,7 +53,7 @@ private static class SingletonHelper { | |||||
|
||||||
static { | ||||||
try { | ||||||
JSON_FACTORY = JacksonFactory.getDefaultInstance(); | ||||||
JSON_FACTORY = GsonFactory.getDefaultInstance(); | ||||||
HTTP_TRANSPORT = GoogleNetHttpTransport.newTrustedTransport(); | ||||||
} catch (GeneralSecurityException | IOException e) { | ||||||
throw new RuntimeException(e); | ||||||
|
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.
Looks like this was added by mistake, could you please remove it?