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 | cf6a828 | 2019-07-14 20:01:51 -0700 | [diff] [blame] | 3 | GRPC_JAVA_VERSION = "1.22.1" |
pierventre | 5489c2f | 2022-05-06 19:01:27 +0200 | [diff] [blame] | 4 | GRPC_SHA = "073395219d611c21a460d21dfe5cb77550030d6396b400f796e568b5175c2ec0" |
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", |
pierventre | 5489c2f | 2022-05-06 19:01:27 +0200 | [diff] [blame] | 13 | urls = ["https://github.com/opennetworkinglab/grpc-java/archive/v%s-fix-host_javabase.zip" % GRPC_JAVA_VERSION], |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 14 | sha256 = GRPC_SHA, |
pierventre | 5489c2f | 2022-05-06 19:01:27 +0200 | [diff] [blame] | 15 | strip_prefix = "grpc-java-%s-fix-host_javabase" % 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 | ) |