I have a .proto
file which Imports google/protobuf/wrappers.proto
while I run Scalapbc to generate the relevant scala code out of it it gives Import google/protobuf/wrappers.proto
not found error.
as a workaround for now I have kept the wrappers.proto
file in file system for now inside --proto_path
But I need to come up with a fix wherein I need add the relevant dependencies in build.sbt / pom.xml to unpack the jar containing default proto files (such as wrappers.proto) before calling Scalapbc
I uses the
AkkaGrpcPugin
forsbt
which seems to handle all the dependencies.In
plugins.sbt
I haveIn
build.sbt
I haveIn automatically picks up the files in
src/main/protobuf
for the project and generates the appropriate stub files. I can import standard files, e.g.For multi-project builds I use something like this: