Skip to content

Generate dynamic access metadata when emitting a build report #801

@jormundur00

Description

@jormundur00

Is your feature request related to a problem? Please describe.
Currently, when emitting a build report using --emit build-report, with the -H:+ReportDynamicAccess option, the resulting dynamic access tab of the build report has no idea about frameworks and the relation between them and their dependencies. Since we package library-and-framework-list.json with the newer releases of GraalVM Reachability Metadata, we can parse this information with build tools to enrich the data provided by dynamic access tab of the build report.

Describe the solution you'd like
We should parse the dependencies of the project being built with build tools and serialize a map of artifacts listed in library-and-framework-list.json to their transitive dependencies (generating the JSON file following this schema). After that, we should provide the generated file to the image build, so that native image can parse it further.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions