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

Embed native-image configuration file #200

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

zakkak
Copy link
Contributor

@zakkak zakkak commented Oct 10, 2024

See https://www.graalvm.org/jdk21/reference-manual/native-image/overview/BuildConfiguration/#embed-a-configuration-file

This way consumers of the maven artifact won't need to manually register the said class for runtime initialization (i.e. quarkusio/quarkus#43798 and similar PRs become redundant)

@dmlloyd
Copy link
Contributor

dmlloyd commented Oct 10, 2024

Normally I don't accept changes like these on this kind of project. And by "changes like these" I mean changes relating to a specific run time environment for which there are no tests. And by "this kind of project" I mean standalone utility projects. For this reason I no longer accept OSGi patches for example.

However, in this particular case, if you add a comment to RuntimeFields which references the existence of the reflection file (so that we know to update it if the code changes), I'll allow it since it doesn't interfere with the build.

Thanks!

@zakkak zakkak force-pushed the 2024-10-10-add-native-image-properties branch from 4472521 to 2f1eb15 Compare October 10, 2024 13:06
@zakkak zakkak requested a review from gastaldi October 10, 2024 13:06
Copy link
Contributor

@gastaldi gastaldi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but @dmlloyd is the boss here ;)

src/main/java/org/jboss/threads/EnhancedQueueExecutor.java Outdated Show resolved Hide resolved
See
https://www.graalvm.org/jdk21/reference-manual/native-image/overview/BuildConfiguration/#embed-a-configuration-file

This way consumers of the maven artifact won't need to manually register
the said class for runtime
initialization (i.e. quarkusio/quarkus#43798 and
similar PRs become redundant)
@zakkak zakkak force-pushed the 2024-10-10-add-native-image-properties branch from 2f1eb15 to ca64fbb Compare October 10, 2024 13:11
@dmlloyd dmlloyd merged commit 2f1c832 into jbossas:main Oct 10, 2024
3 checks passed
@zakkak zakkak deleted the 2024-10-10-add-native-image-properties branch October 10, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants