spring-projects / spring-framework

Spring Framework
https://spring.io/projects/spring-framework
Apache License 2.0
56.75k stars 38.15k forks source link

Spring boot 3.1.5 gradle bootBuildImage not working #31561

Closed rafaband closed 1 year ago

rafaband commented 1 year ago

I'm creating a simple config server and using gradle to run bootBuildImage. But it's not working.

I changed it to maven and the bootBuildImage works just fine

Here the project with gradle - https://github.com/fechaki/config-service/tree/main Here the same project runing with maven - https://github.com/fechaki/config-service/tree/hotfix/0.0.2

It's looks like this problem related to the gradle version inside spring boot.

When I run bootBuildImage from gradle

> Task :bootBuildImage
Building image 'docker.io/library/config:0.0.1'

 > Pulling builder image 'docker.io/paketobuildpacks/builder:tiny' ..................................................
 > Pulled builder image 'paketobuildpacks/builder@sha256:1a59354925fcb7ba54744b8017630c97c2b035e1a9e19309330557b9c66bfc2c'
 > Pulling run image 'docker.io/paketobuildpacks/run:tiny-cnb' ..................................................
 > Pulled run image 'paketobuildpacks/run@sha256:adf913cf28031f2090aeaedac65edb36f2987d81a23a8dffab5ea18ca216c94c'
 > Executing lifecycle version v0.16.5
 > Using build cache volume 'pack-cache-b93a112718e8.build'

 > Running creator
    [creator]     ===> ANALYZING
    [creator]     Image with name "docker.io/library/config:0.0.1" not found
    [creator]     ===> DETECTING
    [creator]     6 of 15 buildpacks participating
    [creator]     paketo-buildpacks/ca-certificates   3.6.3
    [creator]     paketo-buildpacks/bellsoft-liberica 10.2.6
    [creator]     paketo-buildpacks/syft              1.32.1
    [creator]     paketo-buildpacks/executable-jar    6.7.4
    [creator]     paketo-buildpacks/spring-boot       5.26.1
    [creator]     paketo-buildpacks/native-image      5.12.1
    [creator]     ===> RESTORING
    [creator]     ===> BUILDING
    [creator]     
    [creator]     Paketo Buildpack for CA Certificates 3.6.3
    [creator]       https://github.com/paketo-buildpacks/ca-certificates
    [creator]       Launch Helper: Contributing to layer
    [creator]         Creating /layers/paketo-buildpacks_ca-certificates/helper/exec.d/ca-certificates-helper
    [creator]     
    [creator]     Paketo Buildpack for BellSoft Liberica 10.2.6
    [creator]       https://github.com/paketo-buildpacks/bellsoft-liberica
    [creator]       Build Configuration:
    [creator]         $BP_JVM_JLINK_ARGS           --no-man-pages --no-header-files --strip-debug --compress=1  configure custom link arguments (--output must be omitted)
    [creator]         $BP_JVM_JLINK_ENABLED        false                                                        enables running jlink tool to generate custom JRE
    [creator]         $BP_JVM_TYPE                 JRE                                                          the JVM type - JDK or JRE
    [creator]         $BP_JVM_VERSION              17                                                           the Java version
    [creator]       Launch Configuration:
    [creator]         $BPL_DEBUG_ENABLED           false                                                        enables Java remote debugging support
    [creator]         $BPL_DEBUG_PORT              8000                                                         configure the remote debugging port
    [creator]         $BPL_DEBUG_SUSPEND           false                                                        configure whether to suspend execution until a debugger has attached
    [creator]         $BPL_HEAP_DUMP_PATH                                                                       write heap dumps on error to this path
    [creator]         $BPL_JAVA_NMT_ENABLED        true                                                         enables Java Native Memory Tracking (NMT)
    [creator]         $BPL_JAVA_NMT_LEVEL          summary                                                      configure level of NMT, summary or detail
    [creator]         $BPL_JFR_ARGS                                                                             configure custom Java Flight Recording (JFR) arguments
    [creator]         $BPL_JFR_ENABLED             false                                                        enables Java Flight Recording (JFR)
    [creator]         $BPL_JMX_ENABLED             false                                                        enables Java Management Extensions (JMX)
    [creator]         $BPL_JMX_PORT                5000                                                         configure the JMX port
    [creator]         $BPL_JVM_HEAD_ROOM           0                                                            the headroom in memory calculation
    [creator]         $BPL_JVM_LOADED_CLASS_COUNT  35% of classes                                               the number of loaded classes in memory calculation
    [creator]         $BPL_JVM_THREAD_COUNT        250                                                          the number of threads in memory calculation
    [creator]         $JAVA_TOOL_OPTIONS                                                                        the JVM launch flags
    [creator]         Using Java version 17 extracted from MANIFEST.MF
    [creator]       BellSoft Liberica NIK 17.0.7: Contributing to layer
    [creator]         Downloading from https://download.bell-sw.com/vm/23.0.0/bellsoft-liberica-vm-core-openjdk17.0.7+7-23.0.0+1-linux-amd64.tar.gz
    [creator]         Verifying checksum
    [creator]         Expanding to /layers/paketo-buildpacks_bellsoft-liberica/native-image-svm
    [creator]         Adding 137 container CA certificates to JVM truststore
    [creator]         Writing env.build/JAVA_HOME.override
    [creator]         Writing env.build/JDK_HOME.override
    [creator]     
    [creator]     Paketo Buildpack for Syft 1.32.1
    [creator]       https://github.com/paketo-buildpacks/syft
    [creator]         Downloading from https://github.com/anchore/syft/releases/download/v0.84.0/syft_0.84.0_linux_amd64.tar.gz
    [creator]         Verifying checksum
    [creator]         Writing env.build/SYFT_CHECK_FOR_APP_UPDATE.default
    [creator]     
    [creator]     Paketo Buildpack for Executable JAR 6.7.4
    [creator]       https://github.com/paketo-buildpacks/executable-jar
    [creator]       Class Path: Contributing to layer
    [creator]         Writing env/CLASSPATH.delim
    [creator]         Writing env/CLASSPATH.prepend
    [creator]       Process types:
    [creator]         executable-jar: java org.springframework.boot.loader.JarLauncher (direct)
    [creator]         task:           java org.springframework.boot.loader.JarLauncher (direct)
    [creator]         web:            java org.springframework.boot.loader.JarLauncher (direct)
    [creator]     
    [creator]     Paketo Buildpack for Spring Boot 5.26.1
    [creator]       https://github.com/paketo-buildpacks/spring-boot
    [creator]       Build Configuration:
    [creator]         $BP_SPRING_CLOUD_BINDINGS_DISABLED   false  whether to contribute Spring Boot cloud bindings support
    [creator]       Launch Configuration:
    [creator]         $BPL_SPRING_CLOUD_BINDINGS_DISABLED  false  whether to auto-configure Spring Boot environment properties from bindings
    [creator]         $BPL_SPRING_CLOUD_BINDINGS_ENABLED   true   Deprecated - whether to auto-configure Spring Boot environment properties from bindings
    [creator]       Class Path: Contributing to layer
    [creator]         Writing env.build/BP_NATIVE_IMAGE_BUILD_ARGUMENTS_FILE.default
    [creator]         Writing env.build/CLASSPATH.append
    [creator]         Writing env.build/CLASSPATH.delim
    [creator]       Image labels:
    [creator]         org.opencontainers.image.title
    [creator]         org.opencontainers.image.version
    [creator]         org.springframework.boot.version
    [creator]     Warning: BOM table is deprecated in this buildpack api version, though it remains supported for backwards compatibility. Buildpack authors should write BOM information to <layer>.sbom.<ext>, launch.sbom.<ext>, or build.sbom.<ext>.
    [creator]     
    [creator]     Paketo Buildpack for Native Image 5.12.1
    [creator]       https://github.com/paketo-buildpacks/native-image
    [creator]       Build Configuration:
    [creator]         $BP_BINARY_COMPRESSION_METHOD                                                    Compression mechanism used to reduce binary size. Options: `none` (default), `upx` or `gzexe`
    [creator]         $BP_NATIVE_IMAGE                       true                                      enable native image build
    [creator]         $BP_NATIVE_IMAGE_BUILD_ARGUMENTS                                                 arguments to pass to the native-image command
    [creator]         $BP_NATIVE_IMAGE_BUILD_ARGUMENTS_FILE  /workspace/META-INF/native-image/argfile  a file with arguments to pass to the native-image command
    [creator]         $BP_NATIVE_IMAGE_BUILT_ARTIFACT                                                  the built application artifact explicitly, required if building from a JAR
    [creator]       Native Image: Contributing to layer
    [creator]         Executing native-image --no-fallback -H:+StaticExecutableWithDynamicLibC @/workspace/META-INF/native-image/argfile -H:Name=/layers/paketo-buildpacks_native-image/native-image/br.com.fechaki.config.ConfigServiceApplication -cp /workspace:/workspace/BOOT-INF/classes:/workspace/BOOT-INF/lib/spring-cloud-config-server-4.0.4.jar:/workspace/BOOT-INF/lib/s3-2.21.10.jar:/workspace/BOOT-INF/lib/spring-boot-actuator-autoconfigure-3.1.5.jar:/workspace/BOOT-INF/lib/micrometer-core-1.11.5.jar:/workspace/BOOT-INF/lib/spring-security-web-6.1.5.jar:/workspace/BOOT-INF/lib/spring-cloud-config-client-4.0.4.jar:/workspace/BOOT-INF/lib/spring-webmvc-6.0.13.jar:/workspace/BOOT-INF/lib/spring-web-6.0.13.jar:/workspace/BOOT-INF/lib/spring-security-config-6.1.5.jar:/workspace/BOOT-INF/lib/spring-security-core-6.1.5.jar:/workspace/BOOT-INF/lib/micrometer-observation-1.11.5.jar:/workspace/BOOT-INF/lib/spring-boot-autoconfigure-3.1.5.jar:/workspace/BOOT-INF/lib/spring-boot-actuator-3.1.5.jar:/workspace/BOOT-INF/lib/spring-boot-3.1.5.jar:/workspace/BOOT-INF/lib/spring-context-6.0.13.jar:/workspace/BOOT-INF/lib/spring-aop-6.0.13.jar:/workspace/BOOT-INF/lib/spring-cloud-commons-4.0.4.jar:/workspace/BOOT-INF/lib/spring-cloud-context-4.0.4.jar:/workspace/BOOT-INF/lib/spring-security-crypto-6.1.5.jar:/workspace/BOOT-INF/lib/spring-security-rsa-1.0.12.RELEASE.jar:/workspace/BOOT-INF/lib/httpclient5-5.2.1.jar:/workspace/BOOT-INF/lib/org.eclipse.jgit.http.apache-6.4.0.202211300538-r.jar:/workspace/BOOT-INF/lib/org.eclipse.jgit.ssh.apache-6.4.0.202211300538-r.jar:/workspace/BOOT-INF/lib/org.eclipse.jgit-6.4.0.202211300538-r.jar:/workspace/BOOT-INF/lib/jackson-datatype-jsr310-2.15.3.jar:/workspace/BOOT-INF/lib/jackson-datatype-jdk8-2.15.3.jar:/workspace/BOOT-INF/lib/jackson-module-parameter-names-2.15.3.jar:/workspace/BOOT-INF/lib/jackson-databind-2.15.3.jar:/workspace/BOOT-INF/lib/jackson-annotations-2.15.3.jar:/workspace/BOOT-INF/lib/jackson-core-2.15.3.jar:/workspace/BOOT-INF/lib/jackson-dataformat-yaml-2.15.3.jar:/workspace/BOOT-INF/lib/snakeyaml-1.33.jar:/workspace/BOOT-INF/lib/aws-xml-protocol-2.21.10.jar:/workspace/BOOT-INF/lib/aws-query-protocol-2.21.10.jar:/workspace/BOOT-INF/lib/protocol-core-2.21.10.jar:/workspace/BOOT-INF/lib/arns-2.21.10.jar:/workspace/BOOT-INF/lib/aws-core-2.21.10.jar:/workspace/BOOT-INF/lib/auth-2.21.10.jar:/workspace/BOOT-INF/lib/regions-2.21.10.jar:/workspace/BOOT-INF/lib/sdk-core-2.21.10.jar:/workspace/BOOT-INF/lib/profiles-2.21.10.jar:/workspace/BOOT-INF/lib/crt-core-2.21.10.jar:/workspace/BOOT-INF/lib/http-auth-2.21.10.jar:/workspace/BOOT-INF/lib/http-auth-aws-2.21.10.jar:/workspace/BOOT-INF/lib/http-auth-spi-2.21.10.jar:/workspace/BOOT-INF/lib/identity-spi-2.21.10.jar:/workspace/BOOT-INF/lib/apache-client-2.21.10.jar:/workspace/BOOT-INF/lib/netty-nio-client-2.21.10.jar:/workspace/BOOT-INF/lib/http-client-spi-2.21.10.jar:/workspace/BOOT-INF/lib/metrics-spi-2.21.10.jar:/workspace/BOOT-INF/lib/json-utils-2.21.10.jar:/workspace/BOOT-INF/lib/utils-2.21.10.jar:/workspace/BOOT-INF/lib/endpoints-spi-2.21.10.jar:/workspace/BOOT-INF/lib/checksums-2.21.10.jar:/workspace/BOOT-INF/lib/checksums-spi-2.21.10.jar:/workspace/BOOT-INF/lib/annotations-2.21.10.jar:/workspace/BOOT-INF/lib/jakarta.annotation-api-2.1.1.jar:/workspace/BOOT-INF/lib/spring-beans-6.0.13.jar:/workspace/BOOT-INF/lib/spring-expression-6.0.13.jar:/workspace/BOOT-INF/lib/spring-core-6.0.13.jar:/workspace/BOOT-INF/lib/micrometer-commons-1.11.5.jar:/workspace/BOOT-INF/lib/HdrHistogram-2.1.12.jar:/workspace/BOOT-INF/lib/LatencyUtils-2.0.3.jar:/workspace/BOOT-INF/lib/tomcat-embed-el-10.1.15.jar:/workspace/BOOT-INF/lib/hibernate-validator-8.0.1.Final.jar:/workspace/BOOT-INF/lib/bcpkix-jdk18on-1.73.jar:/workspace/BOOT-INF/lib/httpcore5-h2-5.2.3.jar:/workspace/BOOT-INF/lib/httpcore5-5.2.3.jar:/workspace/BOOT-INF/lib/sshd-osgi-2.9.2.jar:/workspace/BOOT-INF/lib/sshd-sftp-2.9.2.jar:/workspace/BOOT-INF/lib/logback-classic-1.4.11.jar:/workspace/BOOT-INF/lib/log4j-to-slf4j-2.20.0.jar:/workspace/BOOT-INF/lib/jul-to-slf4j-2.0.9.jar:/workspace/BOOT-INF/lib/sshd-core-2.9.2.jar:/workspace/BOOT-INF/lib/sshd-common-2.9.2.jar:/workspace/BOOT-INF/lib/jcl-over-slf4j-2.0.9.jar:/workspace/BOOT-INF/lib/slf4j-api-2.0.9.jar:/workspace/BOOT-INF/lib/JavaEWAH-1.1.13.jar:/workspace/BOOT-INF/lib/httpclient-4.5.13.jar:/workspace/BOOT-INF/lib/httpcore-4.4.16.jar:/workspace/BOOT-INF/lib/eddsa-0.3.0.jar:/workspace/BOOT-INF/lib/tomcat-embed-websocket-10.1.15.jar:/workspace/BOOT-INF/lib/tomcat-embed-core-10.1.15.jar:/workspace/BOOT-INF/lib/reactive-streams-1.0.4.jar:/workspace/BOOT-INF/lib/eventstream-1.0.1.jar:/workspace/BOOT-INF/lib/third-party-jackson-core-2.21.10.jar:/workspace/BOOT-INF/lib/commons-codec-1.15.jar:/workspace/BOOT-INF/lib/netty-codec-http2-4.1.100.Final.jar:/workspace/BOOT-INF/lib/netty-codec-http-4.1.100.Final.jar:/workspace/BOOT-INF/lib/netty-handler-4.1.100.Final.jar:/workspace/BOOT-INF/lib/netty-codec-4.1.100.Final.jar:/workspace/BOOT-INF/lib/netty-transport-classes-epoll-4.1.100.Final.jar:/workspace/BOOT-INF/lib/netty-transport-native-unix-common-4.1.100.Final.jar:/workspace/BOOT-INF/lib/netty-transport-4.1.100.Final.jar:/workspace/BOOT-INF/lib/netty-buffer-4.1.100.Final.jar:/workspace/BOOT-INF/lib/netty-resolver-4.1.100.Final.jar:/workspace/BOOT-INF/lib/netty-common-4.1.100.Final.jar:/workspace/BOOT-INF/lib/spring-jcl-6.0.13.jar:/workspace/BOOT-INF/lib/jakarta.validation-api-3.0.2.jar:/workspace/BOOT-INF/lib/jboss-logging-3.5.3.Final.jar:/workspace/BOOT-INF/lib/classmate-1.5.1.jar:/workspace/BOOT-INF/lib/bcutil-jdk18on-1.73.jar:/workspace/BOOT-INF/lib/bcprov-jdk18on-1.73.jar:/workspace/BOOT-INF/lib/commons-logging-1.2.jar:/workspace/BOOT-INF/lib/logback-core-1.4.11.jar:/workspace/BOOT-INF/lib/log4j-api-2.20.0.jar br.com.fechaki.config.ConfigServiceApplication
    [creator]     Warning: Using a deprecated option --allow-incomplete-classpath from 'META-INF/native-image/software.amazon.awssdk/netty-nio-client/native-image.properties' in 'file:///workspace/BOOT-INF/lib/netty-nio-client-2.21.10.jar'. Allowing an incomplete classpath is now the default. Use --link-at-build-time to report linking errors at image build time for a class or package.
    [creator]     Warning: The USE_NATIVE_IMAGE_JAVA_PLATFORM_MODULE_SYSTEM environment variable is deprecated and might be removed in a future release. Please refer to the GraalVM release notes.
    [creator]     20:28:15.315 [main] INFO org.apache.sshd.common.util.security.bouncycastle.BouncyCastleSecurityProviderRegistrar -- getOrCreateProvider(BC) created instance of org.bouncycastle.jce.provider.BouncyCastleProvider
    [creator]     20:28:15.341 [main] INFO org.apache.sshd.common.util.security.eddsa.EdDSASecurityProviderRegistrar -- getOrCreateProvider(EdDSA) created instance of net.i2p.crypto.eddsa.EdDSASecurityProvider
    [creator]     20:28:16.290 [main] INFO org.apache.sshd.common.io.DefaultIoServiceFactoryFactory -- No detected/configured IoServiceFactoryFactory; using Nio2ServiceFactoryFactory
    [creator]     ================================================================================
    [creator]     GraalVM Native Image: Generating 'br.com.fechaki.config.ConfigServiceApplication' (static executable)...
    [creator]     ================================================================================
    [creator]     Warning: Could not resolve class com.github.luben.zstd.ZstdCompressCtx for reflection configuration. Reason: java.lang.ClassNotFoundException: com.github.luben.zstd.ZstdCompressCtx.
    [creator]     Warning: Could not resolve class io.netty.handler.ssl.OpenSslClientSessionCache for reflection configuration. Reason: java.lang.NoClassDefFoundError: io/netty/internal/tcnative/SSLSessionCache.
    [creator]     Warning: Could not resolve class io.netty.handler.ssl.ReferenceCountedOpenSslClientContext$ExtendedTrustManagerVerifyCallback for reflection configuration. Reason: java.lang.NoClassDefFoundError: io/netty/internal/tcnative/CertificateVerifier.
    [creator]     Warning: Could not resolve class io.netty.handler.ssl.ReferenceCountedOpenSslServerContext$ExtendedTrustManagerVerifyCallback for reflection configuration. Reason: java.lang.NoClassDefFoundError: io/netty/internal/tcnative/CertificateVerifier.
    [creator]     Warning: Could not resolve class io.netty.handler.ssl.ReferenceCountedOpenSslServerContext$OpenSslServerCertificateCallback for reflection configuration. Reason: java.lang.NoClassDefFoundError: io/netty/internal/tcnative/CertificateCallback.
    [creator]     Warning: Could not resolve class org.conscrypt.ConscryptEngine for reflection configuration. Reason: java.lang.ClassNotFoundException: org.conscrypt.ConscryptEngine.
    [creator]     Warning: Could not resolve class org.conscrypt.ConscryptEngine for reflection configuration. Reason: java.lang.ClassNotFoundException: org.conscrypt.ConscryptEngine.
    [creator]     Warning: Could not resolve class org.conscrypt.ConscryptEngine for reflection configuration. Reason: java.lang.ClassNotFoundException: org.conscrypt.ConscryptEngine.
    [creator]     Warning: Could not resolve class io.netty.resolver.dns.macos.DnsResolver for reflection configuration. Reason: java.lang.ClassNotFoundException: io.netty.resolver.dns.macos.DnsResolver.
    [creator]     Warning: Could not resolve class io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider for reflection configuration. Reason: java.lang.ClassNotFoundException: io.netty.resolver.dns.macos.MacOSDnsServerAddressStreamProvider.
    [creator]     Warning: Could not resolve class org.eclipse.jgit.lib.CoreConfig$TrustPackedRefsStat for reflection configuration. Reason: java.lang.ClassNotFoundException: org.eclipse.jgit.lib.CoreConfig$TrustPackedRefsStat.
    [creator]     Warning: Could not resolve class org.jboss.logmanager.LogManager for reflection configuration. Reason: java.lang.ClassNotFoundException: org.jboss.logmanager.LogManager.
    [creator]     Warning: Method ch.qos.logback.core.encoder.LayoutWrappingEncoder.setParent(Appender) not found.
    [creator]     Warning: Could not resolve class com.aayushatharva.brotli4j.Brotli4jLoader for reflection configuration. Reason: java.lang.ClassNotFoundException: com.aayushatharva.brotli4j.Brotli4jLoader.
    [creator]     Warning: Could not resolve class com.github.luben.zstd.Zstd for reflection configuration. Reason: java.lang.ClassNotFoundException: com.github.luben.zstd.Zstd.
    [creator]     Warning: Could not resolve class com.ning.compress.lzf.impl.UnsafeChunkDecoder for reflection configuration. Reason: java.lang.ClassNotFoundException: com.ning.compress.lzf.impl.UnsafeChunkDecoder.
    [creator]     Warning: Could not register method org.apache.commons.logging.impl.Log4JLogger.<init>(String) for reflection. Reason: java.lang.NoClassDefFoundError: org/apache/log4j/Priority.
    [creator]     Warning: Could not resolve class org.apache.log4j.Level for reflection configuration. Reason: java.lang.ClassNotFoundException: org.apache.log4j.Level.
    [creator]     Warning: Could not resolve class org.apache.log4j.Priority for reflection configuration. Reason: java.lang.ClassNotFoundException: org.apache.log4j.Priority.
    [creator]     Warning: Could not resolve class org.conscrypt.Conscrypt for reflection configuration. Reason: java.lang.ClassNotFoundException: org.conscrypt.Conscrypt.
    [creator]     Warning: Could not resolve class org.conscrypt.OpenSSLContextImpl$TLSv13 for reflection configuration. Reason: java.lang.ClassNotFoundException: org.conscrypt.OpenSSLContextImpl$TLSv13.
    [creator]     Warning: Could not resolve class org.hamcrest.number.OrderingComparison for reflection configuration. Reason: java.lang.ClassNotFoundException: org.hamcrest.number.OrderingComparison.
    [creator]     Warning: Could not resolve class com.sun.el.ExpressionFactoryImpl for reflection configuration. Reason: java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl.
    [creator]     Warning: Could not resolve class groovy.grape.GrabAnnotationTransformation for reflection configuration. Reason: java.lang.ClassNotFoundException: groovy.grape.GrabAnnotationTransformation.
    [creator]     Warning: Could not resolve class groovy.lang.Script for reflection configuration. Reason: java.lang.ClassNotFoundException: groovy.lang.Script.
    [creator]     Warning: Could not resolve class groovy.lang.Script for reflection configuration. Reason: java.lang.ClassNotFoundException: groovy.lang.Script.
    [creator]     Warning: Could not resolve class groovyjarjarantlr.CommonToken for reflection configuration. Reason: java.lang.ClassNotFoundException: groovyjarjarantlr.CommonToken.
    [creator]     Warning: Could not resolve class jakarta.persistence.Persistence for reflection configuration. Reason: java.lang.ClassNotFoundException: jakarta.persistence.Persistence.
    [creator]     Warning: Could not resolve class javafx.beans.value.ObservableValue for reflection configuration. Reason: java.lang.ClassNotFoundException: javafx.beans.value.ObservableValue.
    [creator]     Warning: Could not resolve class javax.money.MonetaryAmount for reflection configuration. Reason: java.lang.ClassNotFoundException: javax.money.MonetaryAmount.
    [creator]     Warning: Could not resolve class org.codehaus.groovy.antlr.GroovySourceAST for reflection configuration. Reason: java.lang.ClassNotFoundException: org.codehaus.groovy.antlr.GroovySourceAST.
    [creator]     Warning: Could not resolve class org.codehaus.groovy.ast.builder.AstBuilderTransformation for reflection configuration. Reason: java.lang.ClassNotFoundException: org.codehaus.groovy.ast.builder.AstBuilderTransformation.
    [creator]     Warning: Could not resolve class org.codehaus.groovy.runtime.ScriptBytecodeAdapter for reflection configuration. Reason: java.lang.ClassNotFoundException: org.codehaus.groovy.runtime.ScriptBytecodeAdapter.
    [creator]     Warning: Could not resolve class org.glassfish.expressly.ValueExpressionImpl for reflection configuration. Reason: java.lang.ClassNotFoundException: org.glassfish.expressly.ValueExpressionImpl.
    [creator]     Warning: Could not resolve class org.glassfish.expressly.parser.AstValue for reflection configuration. Reason: java.lang.ClassNotFoundException: org.glassfish.expressly.parser.AstValue.
    [creator]     Warning: Could not resolve class org.joda.time.ReadableInstant for reflection configuration. Reason: java.lang.ClassNotFoundException: org.joda.time.ReadableInstant.
    [creator]     Warning: Could not register method org.hibernate.validator.internal.constraintvalidators.bv.time.future.FutureValidatorForReadablePartial.<init>() for reflection. Reason: java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant.
    [creator]     Warning: Could not register method org.hibernate.validator.internal.constraintvalidators.bv.time.futureorpresent.FutureOrPresentValidatorForReadablePartial.<init>() for reflection. Reason: java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant.
    [creator]     Warning: Could not register method org.hibernate.validator.internal.constraintvalidators.bv.time.past.PastValidatorForReadablePartial.<init>() for reflection. Reason: java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant.
    [creator]     Warning: Could not register method org.hibernate.validator.internal.constraintvalidators.bv.time.pastorpresent.PastOrPresentValidatorForReadablePartial.<init>() for reflection. Reason: java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant.
    [creator]     Warning: Could not resolve class software.amazon.awssdk.core.internal.interceptor.HttpChecksumRequiredInterceptor for reflection configuration. Reason: java.lang.ClassNotFoundException: software.amazon.awssdk.core.internal.interceptor.HttpChecksumRequiredInterceptor.
    [creator]     [1/8] Initializing...                                           (46.9s @ 0.26GB)
    [creator]      Java version: 17.0.7+7-LTS, vendor version: Liberica-NIK-23.0.0-1
    [creator]      Graal compiler: optimization level: 2, target machine: x86-64-v3
    [creator]      C compiler: gcc (linux, x86_64, 7.5.0)
    [creator]      Garbage collector: Serial GC (max heap size: 80% of RAM)
    [creator]      1 user-specific feature(s)
    [creator]      - org.springframework.aot.nativex.feature.PreComputeFieldFeature
    [creator]     Field org.springframework.http.converter.json.Jackson2ObjectMapperBuilder#jackson2XmlPresent set to false at build time
    [creator]     Field org.springframework.boot.logging.logback.LogbackLoggingSystem$Factory#PRESENT set to true at build time
    [creator]     Field org.springframework.cglib.core.AbstractClassGenerator#inNativeImage set to true at build time
    [creator]     Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#romePresent set to false at build time
    [creator]     Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jaxb2Present set to false at build time
    [creator]     Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jackson2Present set to true at build time
    [creator]     Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jackson2XmlPresent set to false at build time
    [creator]     Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jackson2SmilePresent set to false at build time
    [creator]     Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jackson2CborPresent set to false at build time
    [creator]     Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#gsonPresent set to false at build time
    [creator]     Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#jsonbPresent set to false at build time
    [creator]     Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#kotlinSerializationCborPresent set to false at build time
    [creator]     Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#kotlinSerializationJsonPresent set to false at build time
    [creator]     Field org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport#kotlinSerializationProtobufPresent set to false at build time
    [creator]     Field org.springframework.cloud.bootstrap.TextEncryptorConfigBootstrapper#RSA_IS_PRESENT set to true at build time
    [creator]     Field org.springframework.security.config.annotation.web.builders.HttpSecurity#mvcPresent set to true at build time
    [creator]     Field org.springframework.web.servlet.view.InternalResourceViewResolver#jstlPresent set to false at build time
    [creator]     Field org.springframework.core.NativeDetector#inNativeImage set to true at build time
    [creator]     Field org.springframework.boot.logging.log4j2.Log4J2LoggingSystem$Factory#PRESENT set to false at build time
    [creator]     Field org.springframework.cloud.config.client.ConfigClientRetryBootstrapper#RETRY_IS_PRESENT set to false at build time
    [creator]     Field org.springframework.web.client.RestTemplate#romePresent set to false at build time
    [creator]     Field org.springframework.web.client.RestTemplate#jaxb2Present set to false at build time
    [creator]     Field org.springframework.web.client.RestTemplate#jackson2Present set to true at build time
    [creator]     Field org.springframework.web.client.RestTemplate#jackson2XmlPresent set to false at build time
    [creator]     Field org.springframework.web.client.RestTemplate#jackson2SmilePresent set to false at build time
    [creator]     Field org.springframework.web.client.RestTemplate#jackson2CborPresent set to false at build time
    [creator]     Field org.springframework.web.client.RestTemplate#gsonPresent set to false at build time
    [creator]     Field org.springframework.web.client.RestTemplate#jsonbPresent set to false at build time
    [creator]     Field org.springframework.web.client.RestTemplate#kotlinSerializationCborPresent set to false at build time
    [creator]     Field org.springframework.web.client.RestTemplate#kotlinSerializationJsonPresent set to false at build time
    [creator]     Field org.springframework.web.client.RestTemplate#kotlinSerializationProtobufPresent set to false at build time
    [creator]     Field org.springframework.boot.logging.java.JavaLoggingSystem$Factory#PRESENT set to true at build time
    [creator]     Field org.springframework.aot.AotDetector#inNativeImage set to true at build time
    [creator]     Field org.springframework.security.config.annotation.web.configuration.SpringWebMvcImportSelector#webMvcPresent set to true at build time
    [creator]     Field org.springframework.core.KotlinDetector#kotlinPresent set to false at build time
    [creator]     Field org.springframework.core.KotlinDetector#kotlinReflectPresent set to false at build time
    [creator]     Field org.springframework.format.support.DefaultFormattingConversionService#jsr354Present set to false at build time
    [creator]     Field org.springframework.web.context.support.StandardServletEnvironment#jndiPresent set to true at build time
    [creator]     [2/8] Performing analysis...  []                                (54.1s @ 0.65GB)
    [creator]        8,078 (68.03%) of 11,874 types reachable
    [creator]        9,914 (54.97%) of 18,035 fields reachable
    [creator]       28,237 (38.91%) of 72,578 methods reachable
    [creator]        3,566 types,   438 fields, and 5,807 methods registered for reflection
    [creator]     
    [creator]     Error: java.util.concurrent.ExecutionException: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances of org.apache.sshd.sftp.client.fs.SftpFileSystemProvider are allowed in the image heap as this class should be initialized at image runtime. To see how this object got instantiated use --trace-object-instantiation=org.apache.sshd.sftp.client.fs.SftpFileSystemProvider.
    [creator]     Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
    [creator]     --------------------------------------------------------------------------------
    [creator]        12.3s (11.5% of total time) in 71 GCs | Peak RSS: 1.78GB | CPU load: 6.20
    [creator]     ================================================================================
    [creator]     Finished generating 'br.com.fechaki.config.ConfigServiceApplication' in 1m 42s.
    [creator]     unable to invoke layer creator
    [creator]     unable to contribute native-image layer
    [creator]     error running build
    [creator]     exit status 1
    [creator]     ERROR: failed to build: exit status 1

> Task :bootBuildImage FAILED

Execution failed for task ':bootBuildImage'.
> Builder lifecycle 'creator' failed with status code 51

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 3m 21s
10 actionable tasks: 10 executed

Same project changed to maven

/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/rafaband/WORKSPACES/FECHAKI/BACKEND/config-service -Djansi.passthrough=true -Dmaven.home=/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3 -Dclassworlds.conf=/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/bin/m2.conf -Dmaven.ext.class.path=/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven-event-listener.jar -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=64135:/Applications/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds.license:/Applications/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven3/boot/plexus-classworlds-2.7.0.jar org.codehaus.classworlds.Launcher -Didea.version=2023.2.4 org.springframework.boot:spring-boot-maven-plugin:3.1.5:build-image
[INFO] Scanning for projects...
[INFO] 
[INFO] -----------------------< br.com.fechaki:config >------------------------
[INFO] Building config service 0.0.2-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] >>> spring-boot:3.1.5:build-image (default-cli) > package @ config >>>
[INFO] 
[INFO] --- resources:3.3.1:resources (default-resources) @ config ---
[INFO] Copying 1 resource from src/main/resources to target/classes
[INFO] Copying 0 resource from src/main/resources to target/classes
[INFO] 
[INFO] --- compiler:3.11.0:compile (default-compile) @ config ---
[INFO] Changes detected - recompiling the module! :input tree
[INFO] Compiling 1 source file with javac [debug release 17] to target/classes
[INFO] 
[INFO] --- resources:3.3.1:testResources (default-testResources) @ config ---
[INFO] skip non existing resourceDirectory /Users/rafaband/WORKSPACES/FECHAKI/BACKEND/config-service/src/test/resources
[INFO] 
[INFO] --- compiler:3.11.0:testCompile (default-testCompile) @ config ---
[INFO] Changes detected - recompiling the module! :dependency
[INFO] Compiling 1 source file with javac [debug release 17] to target/test-classes
[INFO] 
[INFO] --- surefire:3.0.0:test (default-test) @ config ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running br.com.fechaki.config.ConfigServiceApplicationTests
17:33:12.013 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [br.com.fechaki.config.ConfigServiceApplicationTests]: ConfigServiceApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
17:33:12.160 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration br.com.fechaki.config.ConfigServiceApplication for test class br.com.fechaki.config.ConfigServiceApplicationTests

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v3.1.5)

2023-11-06T17:33:12.843-03:00  INFO 86250 --- [           main] b.c.f.c.ConfigServiceApplicationTests    : Starting ConfigServiceApplicationTests using Java 17.0.8 with PID 86250 (started by rafaband in /Users/rafaband/WORKSPACES/FECHAKI/BACKEND/config-service)
2023-11-06T17:33:12.848-03:00  INFO 86250 --- [           main] b.c.f.c.ConfigServiceApplicationTests    : No active profile set, falling back to 2 default profiles: "dev", "native"
2023-11-06T17:33:14.644-03:00  INFO 86250 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=3be55601-f189-3ad0-899a-f604402f0a68
2023-11-06T17:33:15.946-03:00  INFO 86250 --- [           main] o.s.b.a.e.web.EndpointLinksResolver      : Exposing 3 endpoint(s) beneath base path '/actuator'
2023-11-06T17:33:15.958-03:00  INFO 86250 --- [           main] o.s.s.web.DefaultSecurityFilterChain     : Will secure any request with [org.springframework.security.web.session.DisableEncodeUrlFilter@26bb92e2, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@18907af2, org.springframework.security.web.context.SecurityContextHolderFilter@29dcdd1c, org.springframework.security.web.header.HeaderWriterFilter@72fb989b, org.springframework.web.filter.CorsFilter@658e7ead, org.springframework.security.web.csrf.CsrfFilter@12cd129c, org.springframework.security.web.authentication.logout.LogoutFilter@5546e754, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@7606bd03, org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter@919086, org.springframework.security.web.authentication.ui.DefaultLogoutPageGeneratingFilter@cfd5cd2, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@7ad889be, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@524f5ea5, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@5599b5bb, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@762bf32d, org.springframework.security.web.access.ExceptionTranslationFilter@51d8f2f2, org.springframework.security.web.access.intercept.AuthorizationFilter@11c7a0b4]
2023-11-06T17:33:16.420-03:00  INFO 86250 --- [           main] b.c.f.c.ConfigServiceApplicationTests    : Started ConfigServiceApplicationTests in 3.996 seconds (process running for 5.646)
Java HotSpot(TM) 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.242 s - in br.com.fechaki.config.ConfigServiceApplicationTests
[INFO] 
[INFO] Results:
[INFO] 
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- jar:3.3.0:jar (default-jar) @ config ---
[INFO] Building jar: /Users/rafaband/WORKSPACES/FECHAKI/BACKEND/config-service/target/config-0.0.2-SNAPSHOT.jar
[INFO] 
[INFO] --- spring-boot:3.1.5:repackage (repackage) @ config ---
[INFO] Replacing main artifact /Users/rafaband/WORKSPACES/FECHAKI/BACKEND/config-service/target/config-0.0.2-SNAPSHOT.jar with repackaged archive, adding nested dependencies in BOOT-INF/.
[INFO] The original artifact has been renamed to /Users/rafaband/WORKSPACES/FECHAKI/BACKEND/config-service/target/config-0.0.2-SNAPSHOT.jar.original
[INFO] 
[INFO] <<< spring-boot:3.1.5:build-image (default-cli) < package @ config <<<
[INFO] 
[INFO] 
[INFO] --- spring-boot:3.1.5:build-image (default-cli) @ config ---
[INFO] Building image 'docker.io/library/config:0.0.2-SNAPSHOT'
[INFO] 
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 0%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 3%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 4%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 5%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 7%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 10%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 12%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 13%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 18%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 24%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 30%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 34%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 41%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 46%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 55%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 60%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 66%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 69%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 77%
[INFO]  > Pulling builder image 'docker.io/paketobuildpacks/builder:base' 100%
[INFO]  > Pulled builder image 'paketobuildpacks/builder@sha256:17ea21162ba8c7717d3ead3ee3836a368aced7f02f2e59658e52029bd6d149e7'
[INFO]  > Pulling run image 'docker.io/paketobuildpacks/run:base-cnb' 100%
[INFO]  > Pulled run image 'paketobuildpacks/run@sha256:1af9935d8987fd52b2266d288200c9482d1dd5529860bbf5bc2d248de1cb1a38'
[INFO]  > Executing lifecycle version v0.16.5
[INFO]  > Using build cache volume 'pack-cache-081483eaf705.build'
[INFO] 
[INFO]  > Running creator
[INFO]     [creator]     ===> ANALYZING
[INFO]     [creator]     Restoring data for SBOM from previous image
[INFO]     [creator]     ===> DETECTING
[INFO]     [creator]     6 of 26 buildpacks participating
[INFO]     [creator]     paketo-buildpacks/ca-certificates   3.6.3
[INFO]     [creator]     paketo-buildpacks/bellsoft-liberica 10.2.6
[INFO]     [creator]     paketo-buildpacks/syft              1.32.1
[INFO]     [creator]     paketo-buildpacks/executable-jar    6.7.4
[INFO]     [creator]     paketo-buildpacks/dist-zip          5.6.4
[INFO]     [creator]     paketo-buildpacks/spring-boot       5.26.1
[INFO]     [creator]     ===> RESTORING
[INFO]     [creator]     Restoring metadata for "paketo-buildpacks/ca-certificates:helper" from app image
[INFO]     [creator]     Restoring metadata for "paketo-buildpacks/bellsoft-liberica:helper" from app image
[INFO]     [creator]     Restoring metadata for "paketo-buildpacks/bellsoft-liberica:java-security-properties" from app image
[INFO]     [creator]     Restoring metadata for "paketo-buildpacks/bellsoft-liberica:jre" from app image
[INFO]     [creator]     Restoring metadata for "paketo-buildpacks/spring-boot:helper" from app image
[INFO]     [creator]     Restoring metadata for "paketo-buildpacks/spring-boot:spring-cloud-bindings" from app image
[INFO]     [creator]     Restoring metadata for "paketo-buildpacks/spring-boot:web-application-type" from app image
[INFO]     [creator]     ===> BUILDING
[INFO]     [creator]     
[INFO]     [creator]     Paketo Buildpack for CA Certificates 3.6.3
[INFO]     [creator]       https://github.com/paketo-buildpacks/ca-certificates
[INFO]     [creator]       Launch Helper: Reusing cached layer
[INFO]     [creator]     
[INFO]     [creator]     Paketo Buildpack for BellSoft Liberica 10.2.6
[INFO]     [creator]       https://github.com/paketo-buildpacks/bellsoft-liberica
[INFO]     [creator]       Build Configuration:
[INFO]     [creator]         $BP_JVM_JLINK_ARGS           --no-man-pages --no-header-files --strip-debug --compress=1  configure custom link arguments (--output must be omitted)
[INFO]     [creator]         $BP_JVM_JLINK_ENABLED        false                                                        enables running jlink tool to generate custom JRE
[INFO]     [creator]         $BP_JVM_TYPE                 JRE                                                          the JVM type - JDK or JRE
[INFO]     [creator]         $BP_JVM_VERSION              17                                                           the Java version
[INFO]     [creator]       Launch Configuration:
[INFO]     [creator]         $BPL_DEBUG_ENABLED           false                                                        enables Java remote debugging support
[INFO]     [creator]         $BPL_DEBUG_PORT              8000                                                         configure the remote debugging port
[INFO]     [creator]         $BPL_DEBUG_SUSPEND           false                                                        configure whether to suspend execution until a debugger has attached
[INFO]     [creator]         $BPL_HEAP_DUMP_PATH                                                                       write heap dumps on error to this path
[INFO]     [creator]         $BPL_JAVA_NMT_ENABLED        true                                                         enables Java Native Memory Tracking (NMT)
[INFO]     [creator]         $BPL_JAVA_NMT_LEVEL          summary                                                      configure level of NMT, summary or detail
[INFO]     [creator]         $BPL_JFR_ARGS                                                                             configure custom Java Flight Recording (JFR) arguments
[INFO]     [creator]         $BPL_JFR_ENABLED             false                                                        enables Java Flight Recording (JFR)
[INFO]     [creator]         $BPL_JMX_ENABLED             false                                                        enables Java Management Extensions (JMX)
[INFO]     [creator]         $BPL_JMX_PORT                5000                                                         configure the JMX port
[INFO]     [creator]         $BPL_JVM_HEAD_ROOM           0                                                            the headroom in memory calculation
[INFO]     [creator]         $BPL_JVM_LOADED_CLASS_COUNT  35% of classes                                               the number of loaded classes in memory calculation
[INFO]     [creator]         $BPL_JVM_THREAD_COUNT        250                                                          the number of threads in memory calculation
[INFO]     [creator]         $JAVA_TOOL_OPTIONS                                                                        the JVM launch flags
[INFO]     [creator]         Using Java version 17 extracted from MANIFEST.MF
[INFO]     [creator]       BellSoft Liberica JRE 17.0.7: Reusing cached layer
[INFO]     [creator]       Launch Helper: Reusing cached layer
[INFO]     [creator]       Java Security Properties: Reusing cached layer
[INFO]     [creator]     
[INFO]     [creator]     Paketo Buildpack for Syft 1.32.1
[INFO]     [creator]       https://github.com/paketo-buildpacks/syft
[INFO]     [creator]         Downloading from https://github.com/anchore/syft/releases/download/v0.84.0/syft_0.84.0_linux_amd64.tar.gz
[INFO]     [creator]         Verifying checksum
[INFO]     [creator]         Writing env.build/SYFT_CHECK_FOR_APP_UPDATE.default
[INFO]     [creator]     
[INFO]     [creator]     Paketo Buildpack for Executable JAR 6.7.4
[INFO]     [creator]       https://github.com/paketo-buildpacks/executable-jar
[INFO]     [creator]       Class Path: Contributing to layer
[INFO]     [creator]         Writing env/CLASSPATH.delim
[INFO]     [creator]         Writing env/CLASSPATH.prepend
[INFO]     [creator]       Process types:
[INFO]     [creator]         executable-jar: java org.springframework.boot.loader.JarLauncher (direct)
[INFO]     [creator]         task:           java org.springframework.boot.loader.JarLauncher (direct)
[INFO]     [creator]         web:            java org.springframework.boot.loader.JarLauncher (direct)
[INFO]     [creator]     
[INFO]     [creator]     Paketo Buildpack for Spring Boot 5.26.1
[INFO]     [creator]       https://github.com/paketo-buildpacks/spring-boot
[INFO]     [creator]       Build Configuration:
[INFO]     [creator]         $BP_SPRING_CLOUD_BINDINGS_DISABLED   false  whether to contribute Spring Boot cloud bindings support
[INFO]     [creator]       Launch Configuration:
[INFO]     [creator]         $BPL_SPRING_CLOUD_BINDINGS_DISABLED  false  whether to auto-configure Spring Boot environment properties from bindings
[INFO]     [creator]         $BPL_SPRING_CLOUD_BINDINGS_ENABLED   true   Deprecated - whether to auto-configure Spring Boot environment properties from bindings
[INFO]     [creator]       Creating slices from layers index
[INFO]     [creator]         dependencies (59.5 MB)
[INFO]     [creator]         spring-boot-loader (269.4 KB)
[INFO]     [creator]         snapshot-dependencies (0.0 B)
[INFO]     [creator]         application (46.0 KB)
[INFO]     [creator]       Launch Helper: Reusing cached layer
[INFO]     [creator]       Spring Cloud Bindings 1.13.0: Contributing to layer
[INFO]     [creator]         Downloading from https://repo1.maven.org/maven2/org/springframework/cloud/spring-cloud-bindings/1.13.0/spring-cloud-bindings-1.13.0.jar
[INFO]     [creator]         Verifying checksum
[INFO]     [creator]         Copying to /layers/paketo-buildpacks_spring-boot/spring-cloud-bindings
[INFO]     [creator]       Web Application Type: Contributing to layer
[INFO]     [creator]         Servlet web application detected
[INFO]     [creator]         Writing env.launch/BPL_JVM_THREAD_COUNT.default
[INFO]     [creator]       4 application slices
[INFO]     [creator]       Image labels:
[INFO]     [creator]         org.opencontainers.image.title
[INFO]     [creator]         org.opencontainers.image.version
[INFO]     [creator]         org.springframework.boot.version
[INFO]     [creator]     ===> EXPORTING
[INFO]     [creator]     Reusing layer 'paketo-buildpacks/ca-certificates:helper'
[INFO]     [creator]     Reusing layer 'paketo-buildpacks/bellsoft-liberica:helper'
[INFO]     [creator]     Reusing layer 'paketo-buildpacks/bellsoft-liberica:java-security-properties'
[INFO]     [creator]     Reusing layer 'paketo-buildpacks/bellsoft-liberica:jre'
[INFO]     [creator]     Reusing layer 'paketo-buildpacks/executable-jar:classpath'
[INFO]     [creator]     Reusing layer 'paketo-buildpacks/spring-boot:helper'
[INFO]     [creator]     Reusing layer 'paketo-buildpacks/spring-boot:spring-cloud-bindings'
[INFO]     [creator]     Reusing layer 'paketo-buildpacks/spring-boot:web-application-type'
[INFO]     [creator]     Reusing layer 'buildpacksio/lifecycle:launch.sbom'
[INFO]     [creator]     Reusing 4/5 app layer(s)
[INFO]     [creator]     Adding 1/5 app layer(s)
[INFO]     [creator]     Reusing layer 'buildpacksio/lifecycle:launcher'
[INFO]     [creator]     Reusing layer 'buildpacksio/lifecycle:config'
[INFO]     [creator]     Reusing layer 'buildpacksio/lifecycle:process-types'
[INFO]     [creator]     Adding label 'io.buildpacks.lifecycle.metadata'
[INFO]     [creator]     Adding label 'io.buildpacks.build.metadata'
[INFO]     [creator]     Adding label 'io.buildpacks.project.metadata'
[INFO]     [creator]     Adding label 'org.opencontainers.image.title'
[INFO]     [creator]     Adding label 'org.opencontainers.image.version'
[INFO]     [creator]     Adding label 'org.springframework.boot.version'
[INFO]     [creator]     Setting default process type 'web'
[INFO]     [creator]     Saving docker.io/library/config:0.0.2-SNAPSHOT...
[INFO]     [creator]     *** Images (388728a9187b):
[INFO]     [creator]           docker.io/library/config:0.0.2-SNAPSHOT
[INFO]     [creator]     Adding cache layer 'paketo-buildpacks/syft:syft'
[INFO]     [creator]     Adding cache layer 'buildpacksio/lifecycle:cache.sbom'
[INFO] 
[INFO] Successfully built image 'docker.io/library/config:0.0.2-SNAPSHOT'
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:39 min
[INFO] Finished at: 2023-11-06T17:34:46-03:00
[INFO] ------------------------------------------------------------------------

Process finished with exit code 0
sdeleuze commented 1 year ago

Not sure about the Maven/Gradle difference, but this issue is likely on GraalVM side, see https://github.com/oracle/graal/issues/5134.