Skip to content

Commit

Permalink
deps: update dependency com.google.cloud:google-cloud-storage to v2.1…
Browse files Browse the repository at this point in the history
…4.0 (#1039)

* deps: update dependency com.google.cloud:google-cloud-storage to v2.14.0

* test: use stable class reference instead of relative

* chore: add com.google.common.base.Charsets to native-image.properties

Co-authored-by: BenWhitehead <[email protected]>
  • Loading branch information
renovate-bot and BenWhitehead committed Oct 26, 2022
1 parent cd33765 commit 26ef9be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ Args = --initialize-at-build-time=com.google.cloud.storage.contrib.nio.CloudStor
com.google.common.io.BaseEncoding$Base64Encoding,\
com.google.common.io.BaseEncoding,\
com.google.common.io.BaseEncoding$StandardBaseEncoding,\
com.google.api.client.util.PemReader
com.google.api.client.util.PemReader,\
com.google.common.base.Charsets
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import com.google.api.gax.rpc.internal.QuotaProjectIdHidingCredentials;
import com.google.auth.Credentials;
import com.google.cloud.NoCredentials;
import com.google.cloud.ServiceOptions;
import com.google.cloud.storage.StorageOptions;
import com.google.cloud.storage.contrib.nio.testing.LocalStorageHelper;
import com.google.cloud.testing.junit4.MultipleAttemptsRule;
Expand Down Expand Up @@ -462,8 +463,7 @@ private static Credentials credentialsForPath(Path p)
storageOptionsField.setAccessible(true);
StorageOptions storageOptions =
(StorageOptions) storageOptionsField.get(cloudFilesystemProvider);
Field credentialsField =
storageOptions.getClass().getSuperclass().getDeclaredField("credentials");
Field credentialsField = ServiceOptions.class.getDeclaredField("credentials");
credentialsField.setAccessible(true);
return (Credentials) credentialsField.get(storageOptions);
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-storage</artifactId>
<version>2.13.1</version>
<version>2.14.0</version>
</dependency>
<dependency>
<groupId>com.google.apis</groupId>
Expand Down

0 comments on commit 26ef9be

Please sign in to comment.