无法从生成的原型获取parseFrom作为可用方法

时间:2019-03-06 11:55:41

标签: scala protocol-buffers proto

我的build.sbt是

PB.targets in Compile := Seq(

  PB.gens.java -> (sourceManaged in Compile).value,

  scalapb.gen(javaConversions = true) -> (sourceManaged in Compile).value

)

libraryDependencies += "com.thesamet.scalapb" %% "scalapb-runtime" % scalapb.compiler.Version.scalapbVersion % "protobuf"

我的scalapb.sbt是这个。

addSbtPlugin(“ com.thesamet”%“ sbt-protoc”%“ 0.99.19”)

libraryDependencies + =“ com.thesamet.scalapb” %%“ compilerplugin”%“ 0.8.1”

1 个答案:

答案 0 :(得分:0)

只需将% "protobuf"更改为% "compile"