Skip to content

Allow Spring Boot to print the classpath SBOM #45954

Open
@blaghed

Description

@blaghed

With native images, and starting with GraalVM 23, it is possible to include the SBOM file in the classpath by running the build with --enable-sbom=classpath.
It would be handy to have a standard approach to view/print this SBOM file on demand.

Discussion in #40630 suggests an approach via -Djarmode=tools.
Examples:
my-app -Djarmode=tools sbom
java -Djarmode=tools -jar my-app.jar sbom
java -Djarmode=tools -jar my-app.jar sbom [--destination my-app.sbom.json] (toggle between System.out or a file)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions