Skip to content

Better DevExp for serialization feature support as of GraalVM 21 #14530

@machi1990

Description

@machi1990

Description

The new release of GraalVM 21.0 adds serialization support, developers can configure class for serialization via the serialization configuration file -H:SerializationConfigurationResources=/path/to-serialization-config.json option.

This release will be supported in Quarkus soon thanks to @zakkak .

This can at the moment be achieved by quarkus.native.additional-build-args=-H:SerializationConfigurationResources=/path/to-serialization-config.json, however we can add features like the one we added for H:ReflectionConfigurationFiles option i.e @RegisterForReflection annotation for better developer experience.

We can also, add a way (programmaticaly) to include classes that are not part of the application e.g the ones coming from external libs / frameworks (I am wondering if there are still efforts to do this for the reflection configuration??), instead of the developer having to use the json configuration file.

/cc @gsmet @geoand @stuartwdouglas @zakkak @emmanuelbernard

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions