java protobuf gradle 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"
}