blob: 93703b8b827528862c0d47c4956c0eb7cbef51bc [file] [log] [blame]
Carmelo Cascone72893b72018-08-09 00:59:06 -07001load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Carmelo Casconebde9beb2019-02-08 14:40:56 -08002load("//tools/build/bazel:variables.bzl", "GRPC_JAVA_VERSION")
Ray Milkey30773582018-07-26 15:52:23 -07003
Carmelo Casconeef478a62019-01-29 18:45:22 -08004GRPC_VER = "1.18.0"
5GRPC_SHA = "979cd1873c0f3aefa25f3d20336c023ce34471203bf2d954ad9e3158fc55c16b"
Carmelo Cascone6a1ae712018-08-10 12:19:47 -07006
7GAPIS_COMMIT = "37cc0e5acae50ee91f00827a7010c3b07dfa5311"
8GAPIS_SHA = "17d023f48ea290f25edaf25a967973b5a42ce6d71b1570862f302d95aa8b9f77"
Ray Milkey30773582018-07-26 15:52:23 -07009
10def generate_grpc():
Carmelo Casconeef478a62019-01-29 18:45:22 -080011 # grpc-java fork that fixes the OSGi split problem.
Carmelo Cascone72893b72018-08-09 00:59:06 -070012 http_archive(
13 name = "io_grpc_grpc_java",
Carmelo Casconebde9beb2019-02-08 14:40:56 -080014 urls = ["https://github.com/opennetworkinglab/grpc-java/archive/v%s-patched.zip" % GRPC_JAVA_VERSION],
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070015 sha256 = GRPC_SHA,
Carmelo Casconebde9beb2019-02-08 14:40:56 -080016 strip_prefix = "grpc-java-%s-patched" % GRPC_JAVA_VERSION,
Ray Milkey30773582018-07-26 15:52:23 -070017 )
Ray Milkey5063f5b2018-08-15 16:22:30 -070018
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070019 # Google APIs protos (status.proto, etc.)
Carmelo Cascone72893b72018-08-09 00:59:06 -070020 http_archive(
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070021 name = "com_github_googleapis",
22 urls = ["https://github.com/googleapis/googleapis/archive/%s.zip" % GAPIS_COMMIT],
23 sha256 = GAPIS_SHA,
24 strip_prefix = "googleapis-" + GAPIS_COMMIT,
Ray Milkey5063f5b2018-08-15 16:22:30 -070025 build_file = "//tools/build/bazel:googleapis_BUILD",
Ray Milkey30773582018-07-26 15:52:23 -070026 )