blob: 331f0a4d4d18af76c1e85df53353d06fdc97269a [file] [log] [blame]
Carmelo Cascone72893b72018-08-09 00:59:06 -07001load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Ray Milkey30773582018-07-26 15:52:23 -07002
Carmelo Cascone72893b72018-08-09 00:59:06 -07003GRPC_VER = "1.14.0"
4SHA = "657ee70cbbc7e8c5aa26d622329f5fc8bfa6ce5e960bcdbff802f785b0eba212"
Ray Milkey30773582018-07-26 15:52:23 -07005
6def generate_grpc():
Carmelo Cascone72893b72018-08-09 00:59:06 -07007 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 Milkey30773582018-07-26 15:52:23 -070012 )
Carmelo Cascone72893b72018-08-09 00:59:06 -070013 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 Milkey30773582018-07-26 15:52:23 -070019 )