Class ProductAttribution

java.lang.Object
io.quarkus.sbom.ProductAttribution

public final class ProductAttribution extends Object
Adds platform-member product components to an ApplicationManifest.

When a platform member declares a product CPE (and, optionally, the artifacts attributed to it via the cpe-artifacts platform property), a top-level component of type ApplicationComponent.TYPE_FRAMEWORK is added for that product. The product component carries the CPE, is scoped ApplicationComponent.SCOPE_EXCLUDED, provides the attributed artifacts that are actually present in the application (CycloneDX 1.6 dependency.provides), and is linked as a dependency of the main application component.

Products identified by the same product coordinates and CPE are merged into a single component whose attributed artifacts are the union of the members' contributions.

  • Method Details

    • augment

      public static ApplicationManifest augment(ApplicationManifest manifest, ApplicationModel model)
      Returns a manifest augmented with platform-member product components, or the given manifest unchanged when there is nothing to attribute.
      Parameters:
      manifest - the application manifest to augment
      model - the application model providing platform properties and dependencies
      Returns:
      the augmented manifest, or the original when no products are attributed