使用scalapb proto编译器/akka-grpc中间件,如何在.proto文件中导入firestore RPC的定义?例如:如何导入Document定义?
试图直截了当地说import "google.firestore.v1beta1.Document";给出了错误。
发布于 2018-12-20 14:12:40
看看https://github.com/thesamet/sbt-protoc/blob/master/examples/multi-with-external-jar/build.sbt
您需要添加libraryDependencies += "com.google.api.grpc" % "proto-google-cloud-firestore-v1beta1" % "0.37.0" % "protobuf",这将使sbt-protoc将protos提取到target/protobuf_external的子目录中(如果您希望ScalaPB为它们生成Scala类),然后还需要添加PB.protoSources in Compile += target.value / "protobuf_external" / "com" / "google"
https://stackoverflow.com/questions/53590894
复制相似问题