Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to add MessageOptions #381

Open
UnaiUribarri-TomTom opened this issue Nov 13, 2024 · 1 comment
Open

Document how to add MessageOptions #381

UnaiUribarri-TomTom opened this issue Nov 13, 2024 · 1 comment

Comments

@UnaiUribarri-TomTom
Copy link

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?

@thesamet
Copy link
Owner

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 *.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants