You've already forked sap-jenkins-library
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:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user