You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GraalVMReachabilityMetadataService instance is created and set to the CollectReachabilityMetadata task in the first evaluated module (which is micronaut-cli) and then set to CollectReachabilityMetadata tasks created for other modules. But gradle execution fails to set the shared GraalVMReachabilityMetadataService instance in the starter-analytics-postgres because the GraalVMReachabilityMetadataService class from the starter-analytics-postgres module is loaded by different class loader. If the build.gradle.kts file is modified to build.gradle in the starter-analytics-postgres module, everything works ok, otherwise the following error is thrown:
Caused by: java.lang.IllegalArgumentException: Cannot set the value of task ':starter-analytics-postgres:collectReachabilityMetadata' property 'metadataService' of type org.graalvm.buildtools.gradle.internal.GraalVMReachabilityMetadataService using a provider of type org.graalvm.buildtools.gradle.internal.GraalVMReachabilityMetadataService.
at org.gradle.api.internal.provider.AbstractMinimalProvider.asSupplier(AbstractMinimalProvider.java:154)
at org.gradle.api.internal.provider.DefaultProperty.set(DefaultProperty.java:100)
at org.graalvm.buildtools.gradle.NativeImagePlugin.lambda$configureJavaProject$11(NativeImagePlugin.java:298)
Steps to Reproduce
Execute ./gradlew tasks --no-daemon --all | grep -w "nativeTest" in the micronaut-starter
The text was updated successfully, but these errors were encountered:
msupic
changed the title
Shared metadata service cannot be set to collect metadata gradle task in the starter-analytics-postgres module
Shared metadata service cannot be set to collect metadata gradle task in the starter-analytics-postgres module
Aug 15, 2023
Description
The
GraalVMReachabilityMetadataService
instance is created and set to theCollectReachabilityMetadata
task in the first evaluated module (which ismicronaut-cli
) and then set toCollectReachabilityMetadata
tasks created for other modules. But gradle execution fails to set the sharedGraalVMReachabilityMetadataService
instance in thestarter-analytics-postgres
because theGraalVMReachabilityMetadataService
class from thestarter-analytics-postgres
module is loaded by different class loader. If thebuild.gradle.kts
file is modified tobuild.gradle
in thestarter-analytics-postgres
module, everything works ok, otherwise the following error is thrown:Steps to Reproduce
Execute
./gradlew tasks --no-daemon --all | grep -w "nativeTest"
in themicronaut-starter
The text was updated successfully, but these errors were encountered: