sbt-protoc
sbt-protoc copied to clipboard
Document how to add MessageOptions
I need to migrate from old ScalaPB sbt plugin and I cannot find how to translate this:
PB.protoSettings += scalapb.options.Scalapb
.MessageOptions
.newBuilder()
.setExtends("CommonTrait")
.build()
Can you help me?
Hi there, I am not sure which sbt plugin you were using - this setting is not familiar for me. However, if you want all generated messages to extend CommonTrait you can use auxiliary options with a target of *.