From b72436dd3166398d57dc2aa7b0f32245da422e1f Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Fri, 29 Sep 2023 08:32:05 +0200 Subject: [PATCH] chore(buildSrc): Update the list of classes to initialize at build time With this, the native image build actually succeeds when using the latest developer build [1]. [1]: https://github.com/graalvm/graalvm-ce-dev-builds/releases/tag/24.0.0-dev-20230928_2125 Signed-off-by: Sebastian Schuberth --- .../ort-application-conventions.gradle.kts | 54 +++++++++++++++---- 1 file changed, 43 insertions(+), 11 deletions(-) diff --git a/buildSrc/src/main/kotlin/ort-application-conventions.gradle.kts b/buildSrc/src/main/kotlin/ort-application-conventions.gradle.kts index cffb58b49d68a..122fc036b4ccd 100644 --- a/buildSrc/src/main/kotlin/ort-application-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/ort-application-conventions.gradle.kts @@ -54,18 +54,50 @@ graalvmNative { "ch.qos.logback.classic.Logger", "ch.qos.logback.classic.LoggerContext", "ch.qos.logback.classic.PatternLayout", - "ch.qos.logback.core.CoreConstants", + "ch.qos.logback.classic.encoder.PatternLayoutEncoder", + "ch.qos.logback.classic.joran.JoranConfigurator", + "ch.qos.logback.classic.model.ConfigurationModel", + "ch.qos.logback.classic.model.LoggerModel", + "ch.qos.logback.classic.model.RootLoggerModel", + "ch.qos.logback.classic.model.processor.LoggerModelHandler", + "ch.qos.logback.classic.model.processor.RootLoggerModelHandler", + "ch.qos.logback.classic.pattern.DateConverter", + "ch.qos.logback.classic.pattern.LevelConverter", + "ch.qos.logback.classic.pattern.LineSeparatorConverter", + "ch.qos.logback.classic.pattern.LoggerConverter", + "ch.qos.logback.classic.pattern.MessageConverter", + "ch.qos.logback.classic.pattern.NamedConverter\$CacheMissCalculator", + "ch.qos.logback.classic.pattern.NamedConverter\$NameCache", + "ch.qos.logback.classic.pattern.ThreadConverter", + "ch.qos.logback.classic.pattern.ThrowableProxyConverter", + "ch.qos.logback.classic.spi.LoggerContextVO", + "ch.qos.logback.classic.spi.TurboFilterList", + "ch.qos.logback.classic.util.ContextInitializer", + "ch.qos.logback.classic.util.ContextInitializer\$1", + "ch.qos.logback.classic.util.LogbackMDCAdapter", + "ch.qos.logback.core.BasicStatusManager", + "ch.qos.logback.core.ConsoleAppender", + "ch.qos.logback.core.helpers.CyclicBuffer", + "ch.qos.logback.core.joran.spi.ConfigurationWatchList", + "ch.qos.logback.core.joran.spi.ConsoleTarget\$1", + "ch.qos.logback.core.model.AppenderModel", + "ch.qos.logback.core.model.AppenderRefModel", + "ch.qos.logback.core.model.ImplicitModel", + "ch.qos.logback.core.model.processor.AppenderModelHandler", + "ch.qos.logback.core.model.processor.AppenderRefModelHandler", + "ch.qos.logback.core.model.processor.DefaultProcessor", + "ch.qos.logback.core.model.processor.ImplicitModelHandler", + "ch.qos.logback.core.pattern.FormatInfo", + "ch.qos.logback.core.pattern.LiteralConverter", + "ch.qos.logback.core.spi.AppenderAttachableImpl", + "ch.qos.logback.core.spi.ContextAwareImpl", + "ch.qos.logback.core.spi.FilterAttachableImpl", + "ch.qos.logback.core.spi.LogbackLock", "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.sshd.common.file.root.RootedFileSystemProvider", - "org.apache.sshd.sftp.client.fs.SftpFileSystemProvider", - "org.slf4j.LoggerFactory", - "org.slf4j.helpers.NOPLoggerFactory", - "org.slf4j.helpers.NOP_FallbackServiceProvider", - "org.slf4j.helpers.SubstituteLoggerFactory", - "org.slf4j.helpers.SubstituteServiceProvider" + "ch.qos.logback.core.util.COWArrayList", + "ch.qos.logback.core.util.CachingDateFormatter", + "ch.qos.logback.core.util.CachingDateFormatter\$CacheTuple", + "org.apache.sshd.common.file.root.RootedFileSystemProvider" ).joinToString(separator = ",", prefix = "--initialize-at-build-time=") buildArgs.addAll(