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