Skip to content

[native-image] Override META-INF native image properties #2535

@fhanik

Description

@fhanik

Feature request

Please include the following information:

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. E.g. I'm always frustrated when [...]

Describe the solution you'd like.
Some libraries include meta files for the native-image generator inside the JAR file at the META-INF/native-image/groupId/artifactId location.

The files often have to include reflection and resource data that encompasses all use cases.
When using a small portion of the library, it may be desirable to override this configuration with a provided one, a smaller one, to optimize the size of the binary.

Describe who do you think will benefit the most.
GraalVM users that compile the applications to native images will benefit since they will have a greater control over what is included in the image.

Describe alternatives you've considered.
Creating a repackaging step during a build cycle to repackage 3rd party jars is an option. This becomes hard to maintain.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions