git clone http://github.com/grpc/grpc.git in a convenient directorygit checkout <tag> (current is v1.31.1, commithash 7d7e456762)mkdir -p third_party/grpc/bazelcp <gRPC git tree>/bazel/{BUILD,cc_grpc_library.bzl,generate_cc.bzl,protobuf.bzl} third_party/grpc/bazelthird_party/grpc directory, apply local patches: patch -p3 < bazel_1.31.1.patchv1.26.0 from https://github.com/grpc/grpc-javacp -R <grpc-java git tree>/compiler/src/java_plugin third_party/grpc/compiler/srcDownload the necessary jars at version 1.26.0 from maven central.