Closed
Description
Describe the bug
In some circumstances, a Gradle build fails when run using --configuration-cache
due to a Configuration
instance that's captured by a lambda in NativeImpagePlugin
. The same build works with 0.9.14.
To Reproduce
Sorry, I've yet to manage to boil things down into a minimal reproducer. Hopefully the configuration cache problem report (see below) will be sufficient to diagnose the problem.
Expected behavior
The Gradle plugin should work with --configuration-cache
.
Logs
⌄ cannot serialize object of type org.gradle.api.internal.artifacts.configurations.DefaultConfiguration, a subtype of org.gradle.api.artifacts.Configuration, as these are not supported with the configuration cache. ?
⌄ fieldarg$1 of org.graalvm.buildtools.gradle.NativeImagePlugin$$Lambda$1852/0x0000000801a9f000
⌄ bean of type org.graalvm.buildtools.gradle.NativeImagePlugin$$Lambda$1852/0x0000000801a9f000
⌄ fieldtransformer of org.gradle.api.internal.provider.TransformBackedProvider
⌄ bean of type org.gradle.api.internal.provider.TransformBackedProvider
⌄ fieldprovider of org.gradle.configurationcache.serialization.codecs.ProviderBackedFileCollectionSpec
⌄ bean of type org.gradle.configurationcache.serialization.codecs.ProviderBackedFileCollectionSpec
⌄ field__configurationFileDirectories__ of org.graalvm.buildtools.gradle.internal.BaseNativeImageOptions
⌄ bean of type org.graalvm.buildtools.gradle.internal.BaseNativeImageOptions
⌄ field_gr_owner_ of org.graalvm.buildtools.gradle.dsl.NativeResourcesOptions
⌄ bean of type org.graalvm.buildtools.gradle.dsl.NativeResourcesOptions
⌄ field__options__ of org.graalvm.buildtools.gradle.tasks.GenerateResourcesConfigFile
task:generateResourcesConfigFile of type org.graalvm.buildtools.gradle.tasks.GenerateResourcesConfigFile
System Info (please complete the following information):
- OS: macOS
- GraalVM Version: 22.2
- Java Version: 17
- Plugin version: 0.9.15