bazel - deps

google-apis

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
http_archive(
name = "com_google_googleapis",
strip_prefix = "googleapis-8b976f7c6187f7f68956207b9a154bc278e11d7e",
urls = ["https://github.com/googleapis/googleapis/archive/8b976f7c6187f7f68956207b9a154bc278e11d7e.tar.gz"],
)

load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language")

switched_rules_by_language(
name = "com_google_googleapis_imports",
gapic = True,
grpc = True,
java = True,
python = True,
)

google api common protos

1
2
3
4
5
6
com_google_googleapis 包含了 common protos; 暂时保留
http_archive(
name = "com_google_api_common_protos",
strip_prefix = "api-common-protos-1db64f2e971e7ea0e15769164a67643539f0994f",
urls = ["https://github.com/googleapis/api-common-protos/archive/1db64f2e971e7ea0e15769164a67643539f0994f.tar.gz"],
)