Skip to content

Commit 26ef9be

Browse files
deps: update dependency com.google.cloud:google-cloud-storage to v2.14.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 <BenWhitehead@users.noreply.github.com>
1 parent cd33765 commit 26ef9be

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

google-cloud-nio/src/main/resources/META-INF/native-image/com/google/cloud/google-cloud-nio/native-image.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ Args = --initialize-at-build-time=com.google.cloud.storage.contrib.nio.CloudStor
4040
com.google.common.io.BaseEncoding$Base64Encoding,\
4141
com.google.common.io.BaseEncoding,\
4242
com.google.common.io.BaseEncoding$StandardBaseEncoding,\
43-
com.google.api.client.util.PemReader
43+
com.google.api.client.util.PemReader,\
44+
com.google.common.base.Charsets

google-cloud-nio/src/test/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystemTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import com.google.api.gax.rpc.internal.QuotaProjectIdHidingCredentials;
2727
import com.google.auth.Credentials;
2828
import com.google.cloud.NoCredentials;
29+
import com.google.cloud.ServiceOptions;
2930
import com.google.cloud.storage.StorageOptions;
3031
import com.google.cloud.storage.contrib.nio.testing.LocalStorageHelper;
3132
import com.google.cloud.testing.junit4.MultipleAttemptsRule;
@@ -462,8 +463,7 @@ private static Credentials credentialsForPath(Path p)
462463
storageOptionsField.setAccessible(true);
463464
StorageOptions storageOptions =
464465
(StorageOptions) storageOptionsField.get(cloudFilesystemProvider);
465-
Field credentialsField =
466-
storageOptions.getClass().getSuperclass().getDeclaredField("credentials");
466+
Field credentialsField = ServiceOptions.class.getDeclaredField("credentials");
467467
credentialsField.setAccessible(true);
468468
return (Credentials) credentialsField.get(storageOptions);
469469
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
<dependency>
7979
<groupId>com.google.cloud</groupId>
8080
<artifactId>google-cloud-storage</artifactId>
81-
<version>2.13.1</version>
81+
<version>2.14.0</version>
8282
</dependency>
8383
<dependency>
8484
<groupId>com.google.apis</groupId>

0 commit comments

Comments
 (0)