Skip to content

Commit

Permalink
chore(dependencies): Autobump korkVersion (#2186)
Browse files Browse the repository at this point in the history
* chore(dependencies): Autobump korkVersion

* refactor(dependency): replace JacksonFactory to GsonFactory

---------

Co-authored-by: root <root@0e8a9747aac9>
Co-authored-by: Edgar Garcia <[email protected]>
  • Loading branch information
3 people authored Sep 26, 2024
1 parent ba0742c commit e7bec0a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
korkVersion=7.239.0
korkVersion=7.240.0
clouddriverVersion=5.89.0
fiatVersion=1.50.0
front50Version=2.35.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.jackson2.JacksonFactory;
import com.google.api.client.json.gson.GsonFactory;
import com.google.api.services.cloudkms.v1.CloudKMS;
import com.google.api.services.cloudkms.v1.CloudKMSScopes;
import com.google.api.services.cloudkms.v1.model.*;
Expand Down Expand Up @@ -101,7 +101,7 @@ byte[] encryptContents(String plaintext) {

private CloudKMS buildCredentials(GoogleSecureStorageProperties properties) {
HttpTransport transport = new NetHttpTransport();
JsonFactory jsonFactory = new JacksonFactory();
JsonFactory jsonFactory = new GsonFactory();
try {
credentials = loadKmsCredential(properties.getJsonPath());
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.javanet.NetHttpTransport;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.jackson2.JacksonFactory;
import com.google.api.client.json.gson.GsonFactory;
import com.google.api.services.storage.Storage;
import com.google.api.services.storage.StorageScopes;
import com.google.api.services.storage.model.Bucket;
Expand Down Expand Up @@ -73,7 +73,7 @@ void writeBytes(String name, byte[] contents) {

private Storage buildCredentials(GoogleSecureStorageProperties properties) {
HttpTransport transport = new NetHttpTransport();
JsonFactory jsonFactory = new JacksonFactory();
JsonFactory jsonFactory = new GsonFactory();
GoogleCredentials credentials;
try {
credentials = loadStorageCredential(properties.getJsonPath());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import com.google.api.client.http.HttpRequestInitializer;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.jackson2.JacksonFactory;
import com.google.api.client.json.gson.GsonFactory;
import com.google.api.services.storage.Storage;
import com.google.api.services.storage.StorageScopes;
import com.netflix.spinnaker.halyard.core.provider.v1.google.GoogleCredentials;
Expand All @@ -45,7 +45,7 @@ public Storage unauthenticatedGoogleStorage() {
}

private Storage createGoogleStorage(boolean useApplicationDefaultCreds) {
JsonFactory jsonFactory = JacksonFactory.getDefaultInstance();
JsonFactory jsonFactory = GsonFactory.getDefaultInstance();
String applicationName = "Spinnaker/Halyard";
HttpRequestInitializer requestInitializer = null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import com.google.api.client.http.ByteArrayContent;
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;
import com.google.api.services.storage.Storage;
import com.google.api.services.storage.StorageScopes;
import com.google.api.services.storage.model.StorageObject;
Expand All @@ -45,7 +45,7 @@ public class GoogleWriteableProfileRegistry {

GoogleWriteableProfileRegistry(WriteableProfileRegistryProperties properties) {
HttpTransport httpTransport = GoogleCredentials.buildHttpTransport();
JsonFactory jsonFactory = JacksonFactory.getDefaultInstance();
JsonFactory jsonFactory = GsonFactory.getDefaultInstance();
com.google.auth.oauth2.GoogleCredentials credentials;
try {
credentials = loadCredentials(properties.getJsonPath());
Expand Down

0 comments on commit e7bec0a

Please sign in to comment.