[GR-63591] Include resource bundles in resource configuration #11313
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR moves the resource bundle registrations in
reachability-metadata.json
to the"resources"
section. As a result,reachability-metadata.json
files emitted by Native Image now contain only the"reflection"
and"resources"
sections.Format
The format used is very similar to the previously used one, with the single difference being that the name of the bundle is given by the
"bundle"
field instead of"name"
, in order to be able to differentiate resource bundles from regular resources.This change also formalizes the deprecation of
"locales"
(not needed since #9694) and"classNames"
(supported through reflection) in the bundle definition object.A resource bundle registration now looks like this:
Backwards compatibility
This change is fully backwards compatible. Registrations in the
"bundles"
section, in bothreachability-metadata.json
andresource-config.json
files, are still parsed correctly and will be until this format is no longer used by the community.This change will also be backported to the previous LTS versions of GraalVM in order for those to be able to parse
reachability-metadata.json
files emitted by Native Image from this point onwards.Configuration merging
When merging configuration files, one of which contains resource bundle registrations in the previous format, all of them will be merged into a
reachability-metadata.json
file using the new format.