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" |
| 4 | SHA = "657ee70cbbc7e8c5aa26d622329f5fc8bfa6ce5e960bcdbff802f785b0eba212" |
Ray Milkey | 3077358 | 2018-07-26 15:52:23 -0700 | [diff] [blame] | 5 | |
| 6 | def generate_grpc(): |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 7 | http_archive( |
| 8 | name = "io_grpc_grpc_java", |
| 9 | urls = ["https://github.com/grpc/grpc-java/archive/v%s.zip" % GRPC_VER], |
| 10 | sha256 = SHA, |
| 11 | strip_prefix = "grpc-java-" + GRPC_VER, |
Ray Milkey | 3077358 | 2018-07-26 15:52:23 -0700 | [diff] [blame] | 12 | ) |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 13 | http_archive( |
| 14 | name = "io_grpc_grpc_java_core_repkg", |
| 15 | urls = ["https://github.com/grpc/grpc-java/archive/v%s.zip" % GRPC_VER], |
| 16 | sha256 = SHA, |
| 17 | strip_prefix = "grpc-java-%s/core" % GRPC_VER, |
| 18 | build_file = "//tools/build/bazel:grpc_core_repkg_BUILD", |
Ray Milkey | 3077358 | 2018-07-26 15:52:23 -0700 | [diff] [blame] | 19 | ) |