git clone http://github.com/grpc/grpc.git in a convenient directorygit checkout <tag> (current is v1.18.0, commithash 007b721f)mkdir -p third_party/grpc/srccp -R <gRPC git tree>/src/{compiler,core,cpp} third_party/grpc/srccp -R <gRPC git tree>/include third_party/grpcrm -rf third_party/grpc/src/core/tsi/test_credsthird_party/grpc directory, apply local patches if necessary: patch -p3 < netinet_tcp_h.patch, patch -p1 < grpc-gettid.patchgit clone http://github.com/grpc/grpc.git in a convenient directorygit checkout <tag> (current is v1.26.0, commithash de893acb)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.patchv1.10.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.20.0 from maven central.