Skip to content

Commit

Permalink
fix: publish with bomFormat extension
Browse files Browse the repository at this point in the history
No test yet, we probably want to revisit this in the future anyway (e.g.
to allow publishing both formats at the same time)
  • Loading branch information
raboof committed Jan 14, 2025
1 parent dfce9ff commit c02a133
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/scala/com/github/sbt/sbom/BomSbtPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ object BomSbtPlugin extends AutoPlugin {
.value,
bomConfigurations := Def.taskDyn(BomSbtSettings.bomConfigurationTask((configuration ?).value)).value,
packagedArtifacts += {
Artifact(artifact.value.name, "cyclonedx", "xml", "cyclonedx") -> makeBom.value
Artifact(
artifact.value.name,
"cyclonedx",
BomFormat.fromSettings(bomFormat.?.value, None, schemaVersion).string,
"cyclonedx"
) -> makeBom.value
},
)
}
Expand Down

0 comments on commit c02a133

Please sign in to comment.