blob: a14b1a560a3de4f3c3a5ad9db3d0ad0bb8f84658 [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 Cascone72893b72018-08-09 00:59:06 -07003GRPC_VER = "1.14.0"
Carmelo Cascone735af032018-08-13 13:48:00 -07004GRPC_SHA = "d216c29f7e0eb4dce0192abbaaee9baf046a373805b6f45be3e5056ab0a616db"
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 Cascone6a1ae712018-08-10 12:19:47 -070010 # Patched grpc-java that fixes the OSGi split problem.
Carmelo Cascone72893b72018-08-09 00:59:06 -070011 http_archive(
12 name = "io_grpc_grpc_java",
Carmelo Cascone735af032018-08-13 13:48:00 -070013 urls = ["https://github.com/opennetworkinglab/grpc-java/archive/v%s-patched.zip" % GRPC_VER],
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070014 sha256 = GRPC_SHA,
15 strip_prefix = "grpc-java-%s-patched" % GRPC_VER,
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 )