我的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”
答案 0 :(得分:0)
只需将% "protobuf"
更改为% "compile"