I have added the scalapb plugin
// Scala Protocol Buffers Compiler
addSbtPlugin("com.thesamet" % "sbt-protoc" % "0.99.8")
libraryDependencies += "com.trueaccord.scalapb" %% "compilerplugin" % "0.6.0-pre5"
build.sbt modifications
PB.targets in Compile := Seq(
scalapb.gen() -> (sourceManaged in Compile).value
)
If I run
sbt protoc-generate
or
sbt compile
from my project root, the protobuf scala source gets generated fine, is found by intellij, and all is good. Great.
However, whenever I build my project in intellij, the scala source files do not get generated.
Scala version : 2.11.8
Intellij scala plugin version 2016.3.9