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

[gRPC/protoc] Support for Kotlin code generation #39127

Open
FWest98 opened this issue Mar 2, 2024 · 2 comments
Open

[gRPC/protoc] Support for Kotlin code generation #39127

FWest98 opened this issue Mar 2, 2024 · 2 comments
Labels

Comments

@FWest98
Copy link
Contributor

FWest98 commented Mar 2, 2024

Description

protoc supports Kotlin-specific code generation (https://protobuf.dev/reference/kotlin/kotlin-generated/) which helps a lot in the development experience: it generates a convenient DSL so the cumbersome builders are no longer needed. This Kotlin support is on top of the normal Java codegen output, and it would be great if this Kotlin-specific code can be generated in some way through Quarkus automatically.

Note that this is different from #24505, as this is only about the DSL (and related code) generated by protoc.

Implementation ideas

Some thoughts on what might work for this:

  • Automatically set this option based through the quarkus-kotlin library; for example by letting this library influence some configuration in the code generation.
  • Expose some option to toggle the creation of Kotlin sources
  • Expose a more generic interface to "add parameters" to the protoc call.
@FWest98 FWest98 added the kind/enhancement New feature or request label Mar 2, 2024
Copy link

quarkus-bot bot commented Mar 2, 2024

/cc @alesj (grpc), @cescoffier (grpc), @geoand (kotlin)

@cescoffier
Copy link
Member

it is still something we want to do, but it's not prioritized yet. Contributions are more than welcome.

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

No branches or pull requests

2 participants