title: How do I use gradle to generate go grpc code?
body: <p>My build.gradle is able to generate protobuf code for Go. What do I need to change to make it generate grpc code for the Go code?</p>
  
  <pre><code>apply plugin: 'com.google.protobuf'
  
  buildscript {
    dependencies {
      classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3'
    }
  }
  
  def grpcVersion = '1.11.0'
  
  dependencies {
    compile "io.grpc:grpc-netty:${grpcVersion}"
    compile "io.grpc:grpc-protobuf:${grpcVersion}"
    compile "io.grpc:grpc-stub:${grpcVersion}"
  }
  
  protobuf {
    protoc {
      artifact = "com.google.protobuf:protoc:3.5.1-1"
    }
    plugins {
      grpc {
        artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}"
      }
    }
    generateProtoTasks {
      all().each { task -&gt;
        task.builtins {
          go { }
        }
      }
      all()*.plugins {
        grpc {}
      }
    }
  }
  </code></pre>