Class SbomContribution

java.lang.Object
io.quarkus.sbom.SbomContribution

public final class SbomContribution extends Object
Groups component descriptors and their dependency relationships for SBOM contribution.

An SbomContribution contains:

  • A flat collection of ComponentDescriptor instances (one per software component)
  • A collection of ComponentDependencies that describe the dependency graph between components, referencing them by bom-ref

The mainComponentBomRef() and runnerPath() properties are reserved for the Quarkus core contribution. Extensions should use of(Collection, Collection) or ofComponents(Collection) to create their contributions.

Instances are immutable and safe for use by multiple threads. The SbomContribution.Builder is not thread-safe and should not be shared between threads.