Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 1 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
Ray Milkey | 3077358 | 2018-07-26 15:52:23 -0700 | [diff] [blame] | 2 | |
Carmelo Cascone | b953669 | 2019-05-28 18:15:23 -0700 | [diff] [blame] | 3 | GRPC_JAVA_VERSION = "1.21.0" |
| 4 | GRPC_SHA = "eaad045e911587c03cae27364920bcb0c80fb0a37bac5f54eb94af9fa0391db3" |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 5 | |
| 6 | GAPIS_COMMIT = "37cc0e5acae50ee91f00827a7010c3b07dfa5311" |
| 7 | GAPIS_SHA = "17d023f48ea290f25edaf25a967973b5a42ce6d71b1570862f302d95aa8b9f77" |
Ray Milkey | 3077358 | 2018-07-26 15:52:23 -0700 | [diff] [blame] | 8 | |
| 9 | def generate_grpc(): |
Carmelo Cascone | b953669 | 2019-05-28 18:15:23 -0700 | [diff] [blame] | 10 | # grpc-java fork that fixes the OSGi split brain problem. |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 11 | http_archive( |
| 12 | name = "io_grpc_grpc_java", |
Carmelo Cascone | bde9beb | 2019-02-08 14:40:56 -0800 | [diff] [blame] | 13 | urls = ["https://github.com/opennetworkinglab/grpc-java/archive/v%s-patched.zip" % GRPC_JAVA_VERSION], |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 14 | sha256 = GRPC_SHA, |
Carmelo Cascone | bde9beb | 2019-02-08 14:40:56 -0800 | [diff] [blame] | 15 | strip_prefix = "grpc-java-%s-patched" % GRPC_JAVA_VERSION, |
Ray Milkey | 3077358 | 2018-07-26 15:52:23 -0700 | [diff] [blame] | 16 | ) |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 17 | |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 18 | # Google APIs protos (status.proto, etc.) |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 19 | http_archive( |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 20 | 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 Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 24 | build_file = "//tools/build/bazel:googleapis_BUILD", |
Ray Milkey | 3077358 | 2018-07-26 15:52:23 -0700 | [diff] [blame] | 25 | ) |