Skip to content

Commit 684fec9

Browse files
authored
feat: publish SBOMs (#1380)
While clearly not perfect, I think we should start growing towards publishing valid SBOMs for our artifacts, and publishing these is a good first step in that direction.
1 parent 053a5cc commit 684fec9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

project/PekkoBuild.scala

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import sbt.Keys._
2020
import sbt._
2121
import sbtassembly.AssemblyPlugin.autoImport._
2222
import sbtwelcome.WelcomePlugin.autoImport._
23+
import _root_.io.github.siculo.sbtbom.BomSbtPlugin.autoImport.makeBom
2324

2425
import java.io.FileInputStream
2526
import java.io.InputStreamReader
@@ -267,6 +268,10 @@ object PekkoBuild {
267268
mavenLocalResolverSettings,
268269
docLintingSettings,
269270
JdkOptions.targetJdkSettings,
271+
// needed until https://github.com/siculo/sbt-bom/pull/57 has been merged
272+
packagedArtifacts += {
273+
Artifact(artifact.value.name, "cyclonedx", "xml") -> makeBom.value
274+
},
270275
// a workaround for https://github.com/akka/akka/issues/27661
271276
// see also project/Protobuf.scala that introduces /../ to make "intellij happy"
272277
MultiJvm / assembly / fullClasspath := {

project/plugins.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ addSbtPlugin("com.github.pjfanning" % "sbt-pekko-build" % "0.3.4")
3030
addSbtPlugin("com.github.reibitto" % "sbt-welcome" % "0.4.0")
3131
addSbtPlugin("com.github.sbt" % "sbt-license-report" % "1.6.1")
3232
addSbtPlugin("io.github.roiocam" % "sbt-depend-walker" % "0.1.1")
33+
addSbtPlugin("io.github.siculo" % "sbt-bom" % "0.3.0")
3334

3435
addSbtPlugin("org.apache.pekko" % "pekko-sbt-paradox" % "1.0.1")
3536

0 commit comments

Comments
 (0)