Skip to content
New issue

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

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

Already on GitHub? # to your account

Annotation processor support for generating reflect-config.json #583

Open
gayanper opened this issue Mar 11, 2024 · 0 comments
Open

Annotation processor support for generating reflect-config.json #583

gayanper opened this issue Mar 11, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@gayanper
Copy link

When working with plain java projects which doesn't use popular frameworks like spring, micronaught, the support for generating reflect-config.json files automatically for knowns project components such as records which are used as part of REST endpoint polos will not have the required reflection metadata to work with libraries like Jackson.

The agent doesn't generate these metadata either, so it would be nice to explicitly mark such component so that as part of the built the reflection metadata can be generated.

Describe the solution you'd like
One possible solution is to introduce compile only annotations to annotates type, constructors, fields, method etc. A annotation processor that is part of the gradle and maven plugins can generate required metadata. One such initiative can be found at https://github.com/mageddo-projects/annotation-processing-tools/tree/master/reflection-config-generator

But support such feature from the graalvm it self would be much better and also could be kept updated with latest changes happening in the graalvm project.

Describe alternatives you've considered
Using https://github.com/mageddo-projects/annotation-processing-tools/tree/master/reflection-config-generator

@gayanper gayanper added the enhancement New feature or request label Mar 11, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants