During development at akka-grpc,
I couldn't import google / protobuf /*.proto
,
sbt-console
Import "google/protobuf/timestamp.proto" was not found or had errors
"google.protobuf.Timestamp" is not defined.
Now, I will introduce the solution.
https://github.com/akka/akka-grpc/issues/681
Find the ones you need in protocolbuffers/protobuf:src/google/protobuf@master , download and put them alongside your projects' .proto resources
Download and place side by side with your project's .proto resource
It was written, but it can be handled more easily.
The solution is to add the following to build.sbt.
libraryDependencies ++= Seq(
"com.google.protobuf" % "protobuf-java" % "3.6.1" % "protobuf"
)
Recommended Posts