1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

Flatten the simple bom (#5141)

This commit is contained in:
Manjunath
2024-10-09 10:17:39 +02:00
committed by GitHub
parent 20b7eff911
commit 41536720c1

View File

@@ -84,6 +84,11 @@ func runMakeBOMGoal(config *mavenBuildOptions, utils maven.Utils) error {
goals := []string{"org.cyclonedx:cyclonedx-maven-plugin:2.7.8:makeBom"}
if config.Flatten {
goals = append(goals, "flatten:flatten")
defines = append(defines, "-Dflatten.mode=resolveCiFriendliesOnly", "-DupdatePomFile=true")
}
return executeMavenGoals(config, utils, flags, goals, defines)
}