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 | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 3 | GRPC_VER = "1.14.0" |
Carmelo Cascone | 735af03 | 2018-08-13 13:48:00 -0700 | [diff] [blame] | 4 | GRPC_SHA = "d216c29f7e0eb4dce0192abbaaee9baf046a373805b6f45be3e5056ab0a616db" |
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 | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 10 | # Patched grpc-java that fixes the OSGi split problem. |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 11 | http_archive( |
| 12 | name = "io_grpc_grpc_java", |
Carmelo Cascone | 735af03 | 2018-08-13 13:48:00 -0700 | [diff] [blame] | 13 | urls = ["https://github.com/opennetworkinglab/grpc-java/archive/v%s-patched.zip" % GRPC_VER], |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 14 | sha256 = GRPC_SHA, |
| 15 | strip_prefix = "grpc-java-%s-patched" % GRPC_VER, |
Ray Milkey | 3077358 | 2018-07-26 15:52:23 -0700 | [diff] [blame] | 16 | ) |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 17 | # Google APIs protos (status.proto, etc.) |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 18 | http_archive( |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 19 | name = "com_github_googleapis", |
| 20 | urls = ["https://github.com/googleapis/googleapis/archive/%s.zip" % GAPIS_COMMIT], |
| 21 | sha256 = GAPIS_SHA, |
| 22 | strip_prefix = "googleapis-" + GAPIS_COMMIT, |
| 23 | build_file = "//tools/build/bazel:googleapis_BUILD" |
Ray Milkey | 3077358 | 2018-07-26 15:52:23 -0700 | [diff] [blame] | 24 | ) |