These are chat archives for trueaccord/ScalaPB

9th
Jul 2018
Zacharias J. Beckman
@zbeckman
Jul 09 22:05
Looking for a little help w/ a shared ScalaPB project. We have a "common" project and a few common types (like message UUID etc.) that we want to put in there. Challenge I'm having is how to include our Protobuf definitions in the project so that it can be used as a dependency. E.g.: Dependent projects should be able to add import "common/types.proto" in their Protobuf definitions... like Scalapb's import "scalapb/scalapb.proto". So far, haven't figured out how to bundle our proto file into the project assets, and where to include it. SBT magic needed I think... @thesamet maybe you could provide a pointer? How do you bundle your protobuf/scalapb.proto and get it published (tried reading your build.sbt... eek)
Nadav Samet
@thesamet
Jul 09 23:29
Hi @zbeckman , see
https://github.com/scalapb/ScalaPB/blob/42a0fde340f7bfda2225efd48df53f1e4a1c0773/build.sbt#L107 try something like:
 unmanagedResourceDirectories in Compile += baseDirectory.value / "src/main/protobuf"
(update to wherever the protobuf is)