-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathWORKSPACE
95 lines (70 loc) · 2.46 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# Bazel code, required for PackageLoader
http_archive(
name = "io_bazel",
sha256 = "23e4281c3628cbd746da3f51330109bbf69780bd64461b63b386efae37203f20",
urls = ["https://releases.bazel.build/0.17.1/release/bazel-0.17.1-dist.zip"],
)
# Buildozer, to manipulate BUILD files
http_archive(
name = "com_github_bazelbuild_buildtools",
strip_prefix = "buildtools-b8569631d3e67c7b83279157dc659903f92e919b",
type = "zip",
urls = ["https://github.com/bazelbuild/buildtools/archive/b8569631d3e67c7b83279157dc659903f92e919b.zip"],
)
# Protobuf
http_archive(
name = "com_google_protobuf",
sha256 = "1f8b9b202e9a4e467ff0b0f25facb1642727cdf5e69092038f15b37c75b99e45",
strip_prefix = "protobuf-3.5.1",
urls = ["https://github.com/google/protobuf/archive/v3.5.1.zip"],
)
# Go - bind external repos
http_archive(
name = "io_bazel_rules_go",
sha256 = "4d8d6244320dd751590f9100cf39fd7a4b75cd901e1f3ffdfd6f048328883695",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.9.0/rules_go-0.9.0.tar.gz",
)
http_archive(
name = "bazel_gazelle",
sha256 = "0103991d994db55b3b5d7b06336f8ae355739635e0c2379dea16b8213ea5a223",
url = "https://github.com/bazelbuild/bazel-gazelle/releases/download/0.9/bazel-gazelle-0.9.tar.gz",
)
# gRPC for Go
load("@io_bazel_rules_go//go:def.bzl", "go_repository", "go_rules_dependencies", "go_register_toolchains")
go_repository(
name = "org_golang_google_grpc",
build_file_proto_mode = "disable", # use existing generated code
commit = "8e4536a86ab602859c20df5ebfd0bd4228d08655", # v1.10.0
importpath = "google.golang.org/grpc",
)
# Go - load additional repos.
go_rules_dependencies()
go_register_toolchains()
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
gazelle_dependencies()
go_repository(
name = "com_github_google_go_cmp",
commit = "v0.2.0",
importpath = "github.com/google/go-cmp",
)
# Maven jars
load("//thirdparty:maven.bzl", "maven_dependencies")
maven_dependencies()
# gRPC for Java
http_archive(
name = "grpc_java",
sha256 = "b4c9839b672213686ee9633a6089a913e50b1040d9f7486bd09d17032a2a90d3",
strip_prefix = "grpc-java-1.10.0",
urls = [
"https://github.com/grpc/grpc-java/archive/v1.10.0.zip",
],
)
# Bind Guava and GSON for @com_google_protobuf//:protobuf_java_util
bind(
name = "guava",
actual = "//thirdparty/jvm/com/google/guava",
)
bind(
name = "gson",
actual = "//thirdparty/jvm/com/google/code/gson",
)