Skip to content

[gRPC] Cannot find a way to add dependencies to buf #694

@honzamalousek

Description

@honzamalousek

Version 0.11.0-grpc-187

Is your feature request related to a problem? Please describe.
I can't find a way to tell the kotlinx-rpc plugin about BSR deps for example buf.build/googleapis/googleapis

Describe the solution you'd like

Something shaped like this seems natural but doesn't exist:

rpc {
    protoc {
        buf {
            generate {
                includeImports = true
                includeWkt = true
            }
            // no place to declare `buf.build/googleapis/googleapis`
        }
    }
 }

Describe alternatives you've considered
Two workarounds I've actually used while migrating from Wire:

  1. Patch the generated buf.yaml in a doFirst hook.
  2. Copy the BSR protos into src/<sourceSet>/proto/.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions