From 84e4fc413af018e9c707c1b65e6f6619ac44d731 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Thu, 12 Sep 2024 10:04:34 -0400 Subject: [PATCH] fix: added native image class initialization workaround to storage samples (#3195) --- .../com/google/cloud/storage-integration/native-image.properties | 1 + .../google/cloud/storage-sample-scgcp/native-image.properties | 1 + 2 files changed, 2 insertions(+) create mode 100644 spring-cloud-gcp-samples/spring-cloud-gcp-integration-storage-sample/src/main/resources/META-INF/native-image/com/google/cloud/storage-integration/native-image.properties create mode 100644 spring-cloud-gcp-samples/spring-cloud-gcp-storage-resource-sample/src/main/resources/META-INF/native-image/com/google/cloud/storage-sample-scgcp/native-image.properties diff --git a/spring-cloud-gcp-samples/spring-cloud-gcp-integration-storage-sample/src/main/resources/META-INF/native-image/com/google/cloud/storage-integration/native-image.properties b/spring-cloud-gcp-samples/spring-cloud-gcp-integration-storage-sample/src/main/resources/META-INF/native-image/com/google/cloud/storage-integration/native-image.properties new file mode 100644 index 0000000000..bb77166845 --- /dev/null +++ b/spring-cloud-gcp-samples/spring-cloud-gcp-integration-storage-sample/src/main/resources/META-INF/native-image/com/google/cloud/storage-integration/native-image.properties @@ -0,0 +1 @@ +Args=--initialize-at-build-time=org.apache.commons.logging.LogFactory,org.apache.commons.logging.LogFactoryService \ No newline at end of file diff --git a/spring-cloud-gcp-samples/spring-cloud-gcp-storage-resource-sample/src/main/resources/META-INF/native-image/com/google/cloud/storage-sample-scgcp/native-image.properties b/spring-cloud-gcp-samples/spring-cloud-gcp-storage-resource-sample/src/main/resources/META-INF/native-image/com/google/cloud/storage-sample-scgcp/native-image.properties new file mode 100644 index 0000000000..bb77166845 --- /dev/null +++ b/spring-cloud-gcp-samples/spring-cloud-gcp-storage-resource-sample/src/main/resources/META-INF/native-image/com/google/cloud/storage-sample-scgcp/native-image.properties @@ -0,0 +1 @@ +Args=--initialize-at-build-time=org.apache.commons.logging.LogFactory,org.apache.commons.logging.LogFactoryService \ No newline at end of file