Skip to content

Support multiple plugins with the Bazel rules #23574

@shs96c

Description

@shs96c

What language does this apply to?
Bazel rules within this repo

Describe the problem you are trying to solve.
The command line protoc allows for more than one plugin to be called at a time. The protoc toolchain in the bazel rules supplied by this repo only allows for a single plugin to be used. It would be beneficial to be able to use multiple plugins

Describe the solution you'd like
proto_lang_toolchain could be extended to support with a plugins attribute, allowing users to specify multiple protoc plugins.

Describe alternatives you've considered
Rulesets such as rules_proto_grpc already support using multiple protoc plugins, but those don't integrate into the official java_proto_library targets.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions