Skip to content

Commit

Permalink
add sbt-reproducible-builds
Browse files Browse the repository at this point in the history
Another go at apache#71/apache#80, might work now that apache#193 was fixed
  • Loading branch information
raboof committed Jun 7, 2024
1 parent fa9370e commit d45c8be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

import com.typesafe.sbt.packager.docker._
import net.bzzt.reproduciblebuilds.ReproducibleBuildsPlugin.reproducibleBuildsCheckResolver

ThisBuild / versionScheme := Some(VersionScheme.SemVerSpec)
sourceDistName := "apache-pekko-persistence-cassandra"
Expand All @@ -17,6 +18,8 @@ val mimaCompareVersion = "1.0.0"

ThisBuild / resolvers += Resolver.ApacheMavenSnapshotsRepo

ThisBuild / reproducibleBuildsCheckResolver := Resolver.ApacheMavenStagingRepo

lazy val root = project
.in(file("."))
.enablePlugins(Common, ScalaUnidocPlugin)
Expand All @@ -29,7 +32,7 @@ dumpSchema := (core / Test / runMain).toTask(" org.apache.pekko.persistence.cass

lazy val core = project
.in(file("core"))
.enablePlugins(Common, AutomateHeaderPlugin, MimaPlugin, MultiJvmPlugin)
.enablePlugins(Common, AutomateHeaderPlugin, MimaPlugin, MultiJvmPlugin, ReproducibleBuildsPlugin)
.dependsOn(cassandraLauncher % Test)
.settings(
name := "pekko-persistence-cassandra",
Expand All @@ -43,7 +46,7 @@ lazy val core = project

lazy val cassandraLauncher = project
.in(file("cassandra-launcher"))
.enablePlugins(Common)
.enablePlugins(Common, ReproducibleBuildsPlugin)
.disablePlugins(MimaPlugin)
.settings(
name := "pekko-persistence-cassandra-launcher",
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.0.1")
addSbtPlugin("com.github.pjfanning" % "sbt-pekko-build" % "0.3.3")
addSbtPlugin("com.github.pjfanning" % "sbt-source-dist" % "0.1.12")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.3")
addSbtPlugin("net.bzzt" % "sbt-reproducible-builds" % "0.32")

// Documentation
addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.5.0")
Expand Down

0 comments on commit d45c8be

Please sign in to comment.