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 | 1fb59ac | 2019-04-25 13:50:54 -0700 | [diff] [blame] | 3 | GRPC_JAVA_VERSION = "1.18.0" |
Carmelo Cascone | ef478a6 | 2019-01-29 18:45:22 -0800 | [diff] [blame] | 4 | GRPC_SHA = "979cd1873c0f3aefa25f3d20336c023ce34471203bf2d954ad9e3158fc55c16b" |
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 | ef478a6 | 2019-01-29 18:45:22 -0800 | [diff] [blame] | 10 | # grpc-java fork 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 | 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 | ) |