From 0e81641b6599fe04ce65cf4c65b0b0fd9313b224 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Tue, 26 Nov 2019 11:02:06 +0100 Subject: [PATCH] Make akka-protobuf-v3.jar reproducible (#28108) This needs 'special treatment' because the akka build overrides `packageBin` for this subproject --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 373d22feeb..b1c3ae3400 100644 --- a/build.sbt +++ b/build.sbt @@ -286,7 +286,7 @@ lazy val protobufV3 = akkaModule("akka-protobuf-v3") exportJars := true, // in dependent projects, use assembled and shaded jar makePomConfiguration := makePomConfiguration.value .withConfigurations(Vector(Compile)), // prevent original dependency to be added to pom as runtime dep - packageBin in Compile := (assembly in Compile).value, // package by running assembly + packageBin in Compile := ReproducibleBuildsPlugin.postProcessJar((assembly in Compile).value), // package by running assembly // Prevent cyclic task dependencies, see https://github.com/sbt/sbt-assembly/issues/365 fullClasspath in assembly := (managedClasspath in Runtime).value, // otherwise, there's a cyclic dependency between packageBin and assembly test in assembly := {}, // assembly runs tests for unknown reason which introduces another cyclic dependency to packageBin via exportedJars