build: more reliable reference to protobuf jar
This avoids problems when the naming convention changes and also makes sure the file has actually been generated.
This commit is contained in:
parent
099e20ec6d
commit
2b567706cb
1 changed files with 3 additions and 2 deletions
|
|
@ -13,6 +13,8 @@ import sbt._
|
|||
import sbt.util.CacheStoreFactory
|
||||
import Keys._
|
||||
|
||||
import sbtassembly.AssemblyKeys._
|
||||
|
||||
object Protobuf {
|
||||
val paths = SettingKey[Seq[File]]("protobuf-paths", "The paths that contain *.proto files.")
|
||||
val outputPaths =
|
||||
|
|
@ -29,8 +31,7 @@ object Protobuf {
|
|||
outputPaths := Seq((sourceDirectory in Compile).value, (sourceDirectory in Test).value).map(_ / "java"),
|
||||
importPath := None,
|
||||
// this keeps intellij happy for files that use the shaded protobuf
|
||||
Compile / unmanagedJars ++= Seq(
|
||||
baseDirectory.value / ".." / "akka-protobuf-v3" / "target" / s"scala-${scalaBinaryVersion.value}" / s"akka-protobuf-v3-assembly-${version.value}.jar"),
|
||||
Compile / unmanagedJars += (LocalProject("akka-protobuf-v3") / assembly).value,
|
||||
protoc := "protoc",
|
||||
protocVersion := "3.11.4",
|
||||
generate := {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue