0

按照 scalaPB 的说明,我已将该文件添加project/scalapb.sbt到我的 intelli j 项目中。这是文件本身 addSbtPlugin("com.trueaccord.scalapb" % "sbt-scalapb" % "0.4.20")

libraryDependencies ++= Seq(
  "com.trueaccord.scalapb" %% "compilerplugin" % "0.4.20",
  "com.github.os72" % "protoc-jar" % "3.0.0-b2.1"
)

我已将以下几行添加到我的build.sbt

import com.trueaccord.scalapb.{ScalaPbPlugin => PB}
PB.protobufSettings
PB.runProtoc in PB.protobufConfig := (args =>
  com.github.os72.protocjar.Protoc.runProtoc("-v241" +: args.toArray))

我遇到的问题是,当 intelli j 尝试刷新 sbt 构建时,它有以下消息:illegal start of simple expression import com.trueaccord.scalapb.{ScalapbPlugin => PB}

4

0 回答 0