Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GraalVM native JSON configuration generation #27991

Closed
sdeleuze opened this issue Jan 31, 2022 · 1 comment
Closed

Add GraalVM native JSON configuration generation #27991

sdeleuze opened this issue Jan 31, 2022 · 1 comment
Assignees
Labels
status: superseded An issue that has been superseded by another theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement

Comments

@sdeleuze
Copy link
Contributor

As a follow-up of #27829, we need to implement GraalVM native JSON configuration generation for reflection, JDK proxies, resources and serialization as one of the possible outputs.

Other use cases could be generating HTML reports for example, so the APIs should be designed for other use cases, GraalVM native JSON configuration generation being just one use case among others.

@sdeleuze sdeleuze added type: enhancement A general enhancement theme: aot An issue related to Ahead-of-time processing labels Jan 31, 2022
@sdeleuze sdeleuze added this to the 6.0.0-M3 milestone Jan 31, 2022
@sdeleuze sdeleuze self-assigned this Jan 31, 2022
sdeleuze added a commit to sdeleuze/spring-framework that referenced this issue Mar 16, 2022
This commit implements 4 package private Json serializers
for JavaSerializationHints, ProxyHints, ReflectionHints
and ResourceHints to serialize GraalVM native JSON configuration
as documented in
https://www.graalvm.org/22.0/reference-manual/native-image/BuildConfiguration/.

It exposes the related functionality via
NativeConfigurationGenerator which allows to generate the
relevant files on the filesystem via the
FileNativeConfigurationGenerator implementation.

The generated *-config.json files have been validated working
with GraalVM 22.0.

Closes spring-projectsgh-27991
sdeleuze added a commit to sdeleuze/spring-framework that referenced this issue Mar 16, 2022
This commit implements 4 package private Json serializers
for JavaSerializationHints, ProxyHints, ReflectionHints
and ResourceHints to serialize GraalVM native JSON configuration
as documented in
https://www.graalvm.org/22.0/reference-manual/native-image/BuildConfiguration/.

It exposes the related functionality via
NativeConfigurationGenerator which allows to generate the
relevant files on the filesystem via the
FileNativeConfigurationGenerator implementation.

The generated *-config.json files have been validated working
with GraalVM 22.0.

Closes spring-projectsgh-27991
@snicoll
Copy link
Member

snicoll commented Mar 16, 2022

Superseded by PR #28131

@snicoll snicoll added the status: superseded An issue that has been superseded by another label Mar 16, 2022
@snicoll snicoll removed this from the 6.0.0-M3 milestone Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: superseded An issue that has been superseded by another theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants