From 3255f7fcd235d3eede34c8de5abe7102de7dd140 Mon Sep 17 00:00:00 2001 From: Srikanta <51379715+srnagar@users.noreply.github.com> Date: Thu, 3 Aug 2023 16:41:22 -0700 Subject: [PATCH] Add logback classes that are initialized at build time (#36231) * Add logback classes that are initialized at build time * add more jackson classes to build time --- .../azure-core/native-image.properties | 24 +++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/sdk/core/azure-core/src/main/resources/META-INF/native-image/com.azure/azure-core/native-image.properties b/sdk/core/azure-core/src/main/resources/META-INF/native-image/com.azure/azure-core/native-image.properties index d09cc4f10d8b3..a622dffccc7d8 100644 --- a/sdk/core/azure-core/src/main/resources/META-INF/native-image/com.azure/azure-core/native-image.properties +++ b/sdk/core/azure-core/src/main/resources/META-INF/native-image/com.azure/azure-core/native-image.properties @@ -1,14 +1,22 @@ Args=\ - --allow-incomplete-classpath \ --report-unsupported-elements-at-runtime \ -H:+AddAllCharsets \ -H:+ReportUnsupportedElementsAtRuntime \ -H:+ReportExceptionStackTraces \ - --initialize-at-build-time=org.apache.log4j.Logger,\ + --initialize-at-build-time=ch.qos.logback.classic.Level,\ + ch.qos.logback.classic.Logger,\ + ch.qos.logback.classic.PatternLayout,\ + ch.qos.logback.core.CoreConstants,\ + ch.qos.logback.core.spi.AppenderAttachableImpl,\ + ch.qos.logback.core.status.InfoStatus,\ + ch.qos.logback.core.status.StatusBase,\ + ch.qos.logback.core.util.Loader,\ + ch.qos.logback.core.util.StatusPrinter,\ + org.apache.log4j.Logger,\ + org.slf4j.MDC,\ org.slf4j.LoggerFactory,\ org.slf4j.impl.StaticLoggerBinder,\ com.azure.core.util.logging.LogLevel,\ - ch.qos.logback.classic.Logger,\ com.azure.core.implementation.logging.DefaultLogger,\ com.azure.core.test.TestBase,\ com.azure.core.util.Configuration,\ @@ -17,5 +25,13 @@ Args=\ com.azure.core.util.CoreUtils,\ com.azure.core.util.NoopConfiguration,\ com.azure.core.util.logging.LoggingEventBuilder,\ + com.fasterxml.jackson.core.Base64Variants,\ + com.fasterxml.jackson.core.JsonFactory,\ + com.fasterxml.jackson.core.io.CharTypes,\ com.fasterxml.jackson.core.io.JsonStringEncoder,\ - com.fasterxml.jackson.core.io.CharTypes + com.fasterxml.jackson.core.io.SerializedString,\ + com.fasterxml.jackson.databind.MappingJsonFactory + + + +