From 0c325ea64468803f5c7e857618ead291963056e8 Mon Sep 17 00:00:00 2001 From: Michel Davit Date: Mon, 15 Jul 2024 10:38:18 +0200 Subject: [PATCH] Publish magnolify-bom --- build.sbt | 31 +++++++++++++++++++++++++++++++ project/plugins.sbt | 1 + 2 files changed, 32 insertions(+) diff --git a/build.sbt b/build.sbt index d1d17197..d3ddb431 100644 --- a/build.sbt +++ b/build.sbt @@ -340,6 +340,37 @@ lazy val root = tlCrossRootProject tools ) +lazy val bom = project + .in(file("bom")) + .enablePlugins(BillOfMaterialsPlugin) + .disablePlugins(TypelevelSettingsPlugin) + .settings( + // Just one BOM including all cross Scala versions + crossVersion := CrossVersion.disabled, + // Create BOM in the first run + crossScalaVersions := Seq(scalaDefault), + moduleName := "magnolify-bom", + bomIncludeProjects := Seq( + avro, + bigquery, + bigtable, + cats, + datastore, + guava, + parquet, + protobuf, + refined, + scalacheck, + shared, + tensorflow, + neo4j, + tools + ), + // only releases after 0.7.4 + tlMimaPreviousVersions := tlMimaPreviousVersions.value + .filter(v => VersionNumber(v).numbers.last >= 4) + ) + lazy val shared = project .in(file("shared")) .settings( diff --git a/project/plugins.sbt b/project/plugins.sbt index 8e1086af..a6b4808d 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,6 +1,7 @@ addSbtPlugin("com.github.sbt" % "sbt-ghpages" % "0.8.0") addSbtPlugin("com.github.sbt" % "sbt-site-paradox" % "1.7.0") addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.5.0") +addSbtPlugin("com.lightbend.sbt" % "sbt-bill-of-materials" % "1.0.2") addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.10.7") addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.0.7") addSbtPlugin("com.github.sbt" % "sbt-paradox-material-theme" % "0.7.0")