blob: 1a680da6ce5773f00b2f760f69364773a3290367 [file] [log] [blame]
Carmelo Cascone72893b72018-08-09 00:59:06 -07001load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Ray Milkey30773582018-07-26 15:52:23 -07002
Carmelo Casconecf6a8282019-07-14 20:01:51 -07003GRPC_JAVA_VERSION = "1.22.1"
pierventre5489c2f2022-05-06 19:01:27 +02004GRPC_SHA = "073395219d611c21a460d21dfe5cb77550030d6396b400f796e568b5175c2ec0"
Carmelo Cascone6a1ae712018-08-10 12:19:47 -07005
6GAPIS_COMMIT = "37cc0e5acae50ee91f00827a7010c3b07dfa5311"
7GAPIS_SHA = "17d023f48ea290f25edaf25a967973b5a42ce6d71b1570862f302d95aa8b9f77"
Ray Milkey30773582018-07-26 15:52:23 -07008
9def generate_grpc():
Carmelo Casconeb9536692019-05-28 18:15:23 -070010 # grpc-java fork that fixes the OSGi split brain problem.
Carmelo Cascone72893b72018-08-09 00:59:06 -070011 http_archive(
12 name = "io_grpc_grpc_java",
pierventre5489c2f2022-05-06 19:01:27 +020013 urls = ["https://github.com/opennetworkinglab/grpc-java/archive/v%s-fix-host_javabase.zip" % GRPC_JAVA_VERSION],
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070014 sha256 = GRPC_SHA,
pierventre5489c2f2022-05-06 19:01:27 +020015 strip_prefix = "grpc-java-%s-fix-host_javabase" % GRPC_JAVA_VERSION,
Ray Milkey30773582018-07-26 15:52:23 -070016 )
Ray Milkey5063f5b2018-08-15 16:22:30 -070017
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070018 # Google APIs protos (status.proto, etc.)
Carmelo Cascone72893b72018-08-09 00:59:06 -070019 http_archive(
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070020 name = "com_github_googleapis",
21 urls = ["https://github.com/googleapis/googleapis/archive/%s.zip" % GAPIS_COMMIT],
22 sha256 = GAPIS_SHA,
23 strip_prefix = "googleapis-" + GAPIS_COMMIT,
Ray Milkey5063f5b2018-08-15 16:22:30 -070024 build_file = "//tools/build/bazel:googleapis_BUILD",
Ray Milkey30773582018-07-26 15:52:23 -070025 )