Tianyu Zhu

05/17/2021, 4:29 PM
So I've been trying out the official protobuf support for kotlin, and I've been able to get my gradle build to generate kotlin files (I'm using kotlin DSL, here):
Copy code
protobuf {
  generateProtoTasks {
    all().forEach { task ->
      task.builtins {
        id("kotlin") // Just add this line to use the new "kotlin" built-in!
The generated code is working pretty well!