make sure to include resources in protobuf-v3 assembly (#174)
This commit is contained in:
parent
982780b043
commit
8e79fc96b5
2 changed files with 5 additions and 7 deletions
|
|
@ -367,7 +367,7 @@ lazy val protobufV3 = pekkoModule("protobuf-v3")
|
||||||
// https://github.com/sbt/sbt-assembly/issues/400
|
// https://github.com/sbt/sbt-assembly/issues/400
|
||||||
.inLibrary(Dependencies.Compile.Provided.protobufRuntime)
|
.inLibrary(Dependencies.Compile.Provided.protobufRuntime)
|
||||||
.inProject),
|
.inProject),
|
||||||
assembly / assemblyOption := (assembly / assemblyOption).value.withIncludeScala(false).withIncludeBin(false),
|
assembly / assemblyOption := (assembly / assemblyOption).value.withIncludeScala(false).withIncludeBin(true),
|
||||||
autoScalaLibrary := false, // do not include scala dependency in pom
|
autoScalaLibrary := false, // do not include scala dependency in pom
|
||||||
exportJars := true, // in dependent projects, use assembled and shaded jar
|
exportJars := true, // in dependent projects, use assembled and shaded jar
|
||||||
makePomConfiguration := makePomConfiguration.value
|
makePomConfiguration := makePomConfiguration.value
|
||||||
|
|
@ -377,8 +377,9 @@ lazy val protobufV3 = pekkoModule("protobuf-v3")
|
||||||
ReproducibleBuildsPlugin.postProcessJar(OsgiKeys.bundle.value)),
|
ReproducibleBuildsPlugin.postProcessJar(OsgiKeys.bundle.value)),
|
||||||
Compile / packageBin := ReproducibleBuildsPlugin
|
Compile / packageBin := ReproducibleBuildsPlugin
|
||||||
.postProcessJar((Compile / assembly).value), // package by running assembly
|
.postProcessJar((Compile / assembly).value), // package by running assembly
|
||||||
// Prevent cyclic task dependencies, see https://github.com/sbt/sbt-assembly/issues/365
|
// Prevent cyclic task dependencies, see https://github.com/sbt/sbt-assembly/issues/365 by
|
||||||
assembly / fullClasspath := (Runtime / managedClasspath).value, // otherwise, there's a cyclic dependency between packageBin and assembly
|
// redefining the fullClasspath with just what we need to avoid the cyclic task dependency
|
||||||
|
assembly / fullClasspath := (Runtime / managedClasspath).value ++ (Compile / products).value.map(Attributed.blank),
|
||||||
assembly / test := {}, // assembly runs tests for unknown reason which introduces another cyclic dependency to packageBin via exportedJars
|
assembly / test := {}, // assembly runs tests for unknown reason which introduces another cyclic dependency to packageBin via exportedJars
|
||||||
description := "Apache Pekko Protobuf V3 is a shaded version of the protobuf runtime. Original POM: https://github.com/protocolbuffers/protobuf/blob/v3.9.0/java/pom.xml")
|
description := "Apache Pekko Protobuf V3 is a shaded version of the protobuf runtime. Original POM: https://github.com/protocolbuffers/protobuf/blob/v3.9.0/java/pom.xml")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
libraryDependencies += Defaults.sbtPluginExtra(
|
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.1.1")
|
||||||
"com.eed3si9n" % "sbt-assembly" % "1.2.0",
|
|
||||||
(pluginCrossBuild / sbtBinaryVersion).value,
|
|
||||||
(pluginCrossBuild / scalaBinaryVersion).value)
|
|
||||||
|
|
||||||
addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % "0.7.0")
|
addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % "0.7.0")
|
||||||
addSbtPlugin("com.lightbend.sbt" % "sbt-bill-of-materials" % "1.0.2")
|
addSbtPlugin("com.lightbend.sbt" % "sbt-bill-of-materials" % "1.0.2")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue