Hi, It seems that google announced kotlin support ...
# gradle
n
Hi, It seems that google announced kotlin support for protobuf at IO. I can’t seem to find if this is supported in the Gradle protobuf plugin yet. I suspect not. Anybody know anything?
c
The Kotlin support in protobuf isn't quite released yet, let alone the Gradle plugin. Should be in the next protobuf version: https://github.com/protocolbuffers/protobuf/tree/v3.17.0/java#kotlin-protocol-buffers
n
Well, hello there Chris! It turns out that it is possible to get it working already! I asked in the Gradle slack channel https://gradle-community.slack.com/archives/CA7UM03V3/p1622108175111100
TLDR;
Copy code
task.plugins {
    kotlin {
      outputSubDir = 'kotlin'
    }
  }
And add
protobuf-kotlin
to your classpath and you are good to go!