quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.56k stars 2.62k forks source link

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

Open FWest98 opened 6 months ago

FWest98 commented 6 months ago

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 https://github.com/quarkusio/quarkus/issues/24505, as this is only about the DSL (and related code) generated by protoc.

Implementation ideas

Some thoughts on what might work for this:

quarkus-bot[bot] commented 6 months ago

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