This is an automated email from the ASF dual-hosted git repository.
engelen pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/pekko-persistence-cassandra.git
The following commit(s) were added to refs/heads/main by this push:
new c69cfae add sbt-reproducible-builds and fix lanucher builds (#206)
c69cfae is described below
commit c69cfae58317e8049334ec52e446236ce3ef4f0b
Author: AndyChen(Jingzhang) <[email protected]>
AuthorDate: Sat Jun 8 17:11:02 2024 +0800
add sbt-reproducible-builds and fix lanucher builds (#206)
* add sbt-reproducible-builds
Another go at #71/#80, might work now that #193 was fixed
* fix: cassandraLauncher build with ReproducibleBuildsPlugin
* chore: use unmanagedResources
* chore: remove target depend
---------
Co-authored-by: Arnout Engelen <[email protected]>
---
build.sbt | 10 ++++++----
project/plugins.sbt | 1 +
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/build.sbt b/build.sbt
index a1eaf7d..5eb842f 100644
--- a/build.sbt
+++ b/build.sbt
@@ -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"
@@ -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)
@@ -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",
@@ -43,12 +46,11 @@ 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",
- Compile / managedResourceDirectories += (cassandraBundle / target).value,
- Compile / managedResources += (cassandraBundle / Compile /
packageBin).value)
+ Compile / unmanagedResources += (cassandraBundle / Compile /
packageBin).value)
// This project doesn't get published directly, rather the assembled artifact
is included as part of cassandraLaunchers
// resources
diff --git a/project/plugins.sbt b/project/plugins.sbt
index b038f01..74dcdf4 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -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")
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]