Skip to content

Commit

Permalink
Publish magnolify-bom (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
RustedBones authored Jul 15, 2024
1 parent b955ffe commit 4918b13
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ jobs:

- name: Make target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
run: mkdir -p refined/target shared/target tensorflow/target parquet/target tools/target protobuf/target jmh/target bigquery/target avro/target scalacheck/target datastore/target neo4j/target cats/target bigtable/target guava/target project/target
run: mkdir -p bom/target refined/target shared/target tensorflow/target parquet/target tools/target protobuf/target jmh/target bigquery/target avro/target scalacheck/target datastore/target neo4j/target cats/target bigtable/target guava/target project/target

- name: Compress target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
run: tar cf targets.tar refined/target shared/target tensorflow/target parquet/target tools/target protobuf/target jmh/target bigquery/target avro/target scalacheck/target datastore/target neo4j/target cats/target bigtable/target guava/target project/target
run: tar cf targets.tar bom/target refined/target shared/target tensorflow/target parquet/target tools/target protobuf/target jmh/target bigquery/target avro/target scalacheck/target datastore/target neo4j/target cats/target bigtable/target guava/target project/target

- name: Upload target directories
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
Expand Down
32 changes: 32 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ lazy val root = tlCrossRootProject
avro,
bigquery,
bigtable,
bom,
cats,
datastore,
guava,
Expand All @@ -340,6 +341,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(
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -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")
Expand Down

0 comments on commit 4918b13

Please sign in to comment.