-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(native): initialize classes at build-time to fix Native Image com…
…pilation (#874)
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
...resources/META-INF/native-image/com/google/cloud/google-cloud-nio/native-image.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Using META-INF/services with Native Image compilation results in | ||
# FileSystemProvider being initialized at build time. This results | ||
# CloudStorageFileSystemProvider and some classes referenced by | ||
# this class (for example, StorageOptions, StorageOptionsUtil, | ||
# DefaultStorageRetryStrategy) being unexpectedly and recursively initialized at | ||
# build time. | ||
Args = --initialize-at-build-time=com.google.cloud.storage.contrib.nio.CloudStorageFileSystemProvider,\ | ||
com.google.cloud.storage.contrib.nio.CloudStorageConfiguration,\ | ||
com.google.cloud.storage.contrib.nio.CloudStorageFileSystem,\ | ||
com.google.cloud.storage.contrib.nio.StorageOptionsUtil,\ | ||
com.google.cloud.storage.StorageException,\ | ||
com.google.cloud.storage.StorageOptions,\ | ||
com.google.cloud.storage.DefaultStorageRetryStrategy,\ | ||
com.google.api.client.http.OpenCensusUtils,\ | ||
com.google.api.client.http.GenericUrl,\ | ||
com.google.api.client.http.HttpRequest,\ | ||
com.google.api.client.http.HttpMediaType,\ | ||
com.google.api.client.http.javanet.NetHttpTransport,\ | ||
com.google.api.client.util.Data,\ | ||
com.google.api.client.util.DateTime,\ | ||
com.google.auth.oauth2,\ | ||
io.opencensus.trace,\ | ||
com.google.api.client.util.escape.CharEscapers,\ | ||
com.google.api.client.util.escape.PercentEscaper,\ | ||
io.opencensus.contrib.http.util.CloudTraceFormat,\ | ||
io.grpc.Context,\ | ||
io.grpc.Context$LazyStorage,\ | ||
io.grpc.ThreadLocalContextStorage,\ | ||
com.google.common.cache.LocalCache,\ | ||
com.google.common.cache.CacheBuilder,\ | ||
com.google.common.math.IntMath$1,\ | ||
com.google.common.collect.RegularImmutableMap,\ | ||
com.google.gson.stream.JsonReader,\ | ||
com.google.api.client.json.gson.GsonParser$1,\ | ||
com.google.api.client.json.JsonParser$1,\ | ||
com.google.cloud.PlatformInformation,\ | ||
com.google.cloud.ExceptionHandler,\ | ||
org.threeten.bp.Duration,\ | ||
com.google.common.io.BaseEncoding$Base16Encoding,\ | ||
com.google.common.io.BaseEncoding$Base64Encoding,\ | ||
com.google.common.io.BaseEncoding,\ | ||
com.google.common.io.BaseEncoding$StandardBaseEncoding,\ | ||
com.google.api.client.util.PemReader |