Add gitea-actions: Spring Boot 4.2.0 CI with surefire/failsafe, Testcontainers, CycloneDX SBOM and Jib
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b69H5rTewUKPyhGS8r
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
|
||||
=== mvn -DskipTests package (default: Spring Boot parent wiring) ===
|
||||
[INFO] --- cyclonedx:2.9.3:makeAggregateBom (default) ---
|
||||
[INFO] CycloneDX: Creating BOM version 1.6 with 59 component(s)
|
||||
[INFO] CycloneDX: Writing and validating BOM (JSON): target/classes/META-INF/sbom/application.cdx.json
|
||||
[INFO] --- jar:3.5.1:jar (default-jar) ---
|
||||
[INFO] --- spring-boot:4.2.0:repackage (repackage) ---
|
||||
jar contains: META-INF/sbom/application.cdx.json
|
||||
|
||||
=== Inside target/classes/META-INF/sbom/application.cdx.json ===
|
||||
bomFormat : CycloneDX
|
||||
specVersion : 1.6
|
||||
subject : com.ankurm.ci:gitea-actions-demo:1.0.0 (application)
|
||||
components : 59
|
||||
by scope : {'required': 59}
|
||||
all have purl : True
|
||||
all have hash : True
|
||||
spring-boot : pkg:maven/org.springframework.boot/[email protected]?type=jar
|
||||
postgresql : pkg:maven/org.postgresql/[email protected]?type=jar
|
||||
tomcat-embed-core : pkg:maven/org.apache.tomcat.embed/[email protected]?type=jar
|
||||
jackson-databind : pkg:maven/tools.jackson.core/[email protected]?type=jar
|
||||
testcontainers : (not in SBOM)
|
||||
dependency edges: 60
|
||||
|
||||
=== The mistake: -Plate-sbom (re-declares the execution with phase=package) ===
|
||||
[INFO] --- jar:3.5.1:jar (default-jar) ---
|
||||
[INFO] --- spring-boot:4.2.0:repackage (repackage) ---
|
||||
[INFO] --- cyclonedx:2.9.3:makeAggregateBom (default) ---
|
||||
jar contains:
|
||||
(empty above = the SBOM is not in the jar)
|
||||
Reference in New Issue
Block a user