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!
}
}
}
}