Extract protobuf compilation out of main Compile scope so that protobuf generation has to be run by “sbt protocGenerate“ instead of “set compile” (which compiles the entire project).
Note: haven't found a solution to disallow generated protobuf files to be cleaned by "sbt clean" task (It is probably because protobuf clean task is binded with the original sbt clean, but I haven't found a solution to extract out )
Note: I still decided to keep generated files to be in Java, because it has better supports from Google.
Extract protobuf compilation out of main Compile scope so that protobuf generation has to be run by “sbt protocGenerate“ instead of “set compile” (which compiles the entire project).
Note: haven't found a solution to disallow generated protobuf files to be cleaned by "sbt clean" task (It is probably because protobuf clean task is binded with the original sbt clean, but I haven't found a solution to extract out )
Note: I still decided to keep generated files to be in Java, because it has better supports from Google.