How to build Google protocol buffers and Kotlin using Gradle?
问题 I'm trying to build a project that uses both Google protocol buffers and Kotlin using Gradle. I want the proto files to compile into Java source, which is then called from my Kotlin code. My source files are arranged like this: src/main/proto/*.proto src/main/kotlin/*.kt src/test/kotlin/*.kt Here's my build.gradle file: version '1.0-SNAPSHOT' apply plugin: 'kotlin' apply plugin: 'java' apply plugin: 'com.google.protobuf' repositories { mavenCentral() maven { url "http://dl.bintray.com/kotlin