Improve documentation for CycloneDX integration

Closes gh-41506
This commit is contained in:
Moritz Halbritter
2024-10-14 11:37:54 +02:00
parent 2e086365fe
commit 5754be36f1
4 changed files with 45 additions and 26 deletions

View File

@@ -92,3 +92,12 @@ When the {url-native-build-tools-docs-gradle-plugin}[GraalVM Native Image plugin
. Configures the `bootBuildImage` task to use `paketobuildpacks/builder-jammy-tiny:latest` as its builder and to set `BP_NATIVE_IMAGE` to `true` in its environment.
[[reacting-to-other-plugins.cyclonedx]]
== Reacting to the CycloneDX Plugin
When the {url-cyclonedx-docs-gradle-plugin}[CycloneDX plugin] is applied to a project, the Spring Boot plugin:
. Configures the `cyclonedxBom` task to use the `application` project type and output the SBOM to the `application.cdx` file in JSON format without full license texts.
. Adds the SBOM under `META-INF/sbom` in the generated jar or war file.
. Adds the `Sbom-Format` and `Sbom-Location` to the manifest of the jar or war file.