gradle compile with com.google.protobuf code example
Example 1: protobuf gradle compile
protobuf {
// Configure the protoc executable
protoc {
// Download from repositories
artifact = 'com.google.protobuf:protoc:3.0.0'
}
}
Example 2: protobuf java gradle
plugins {
id "com.google.protobuf" version "0.8.14"
id "java"
}
Example 3: protobuf java gradle mvn
compile group: 'com.google.protobuf', name: 'protobuf-java', version: '3.14.0'