Cache output of assembly

Previously, the build would rebuild over and over the uber jar with the
shaded protobuf3 distribution. With this patch, this is no longer the
case, as the output is cached locally.
This commit is contained in:
Martin Duhem 2024-02-02 16:20:41 +01:00 committed by Matthew de Detrich
parent 231b9a991a
commit 805b9cbc89
2 changed files with 14 additions and 3 deletions

View file

@ -38,7 +38,7 @@ object Protobuf {
outputPaths := Seq((Compile / sourceDirectory).value, (Test / sourceDirectory).value).map(_ / "java"),
importPath := None,
// this keeps intellij happy for files that use the shaded protobuf
Compile / unmanagedJars += (LocalProject("protobuf-v3") / assembly).value,
Compile / unmanagedJars += (LocalProject("protobuf-v3") / Compile / packageBin).value,
protoc := "protoc",
protocVersion := "3.11.4",
generate := {