/
WORKSPACE.bazel
59 lines (55 loc) · 2.18 KB
/
WORKSPACE.bazel
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
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
A workspace for gapic-showcase
"""
workspace(name = "gapic_showcase")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
##
# googleapis for the common protos
#
http_archive(
name = "com_google_googleapis",
strip_prefix = "googleapis-824ea38ab13d663aaccbdb4fe0920e97b6b0013b",
urls = ["https://github.com/googleapis/googleapis/archive/824ea38ab13d663aaccbdb4fe0920e97b6b0013b.zip"],
sha256 = "4fa9d0850310f67e651c9ae3f3036ec145483067ecc2b14de9016971824efea4"
)
load("@com_google_googleapis//:repository_rules.bzl", "switched_rules_by_language")
switched_rules_by_language(name = "com_google_googleapis_imports", grpc = True)
##
# protobuf for the protobuf protos
#
http_archive(
name = "com_google_protobuf",
sha256 = "05e368b4fe0a71c096b68f7e2f0c81ba61743d06baa858cf6f00ce78959c12c6",
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.21.0.zip"],
strip_prefix = "protobuf-3.21.0",
)
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
##
# rules_proto for the proto_library rule
#
http_archive(
name = "rules_proto",
sha256 = "fb7f1959d2d2bf4d7a1f4f29d650845a9a2303b7879c6792320ba8244910ab01",
strip_prefix = "rules_proto-3212323502e21b819ac4fbdd455cb227ad0f6394",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/3212323502e21b819ac4fbdd455cb227ad0f6394.tar.gz",
"https://github.com/bazelbuild/rules_proto/archive/3212323502e21b819ac4fbdd455cb227ad0f6394.tar.gz",
],
)
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
rules_proto_dependencies()
rules_proto_toolchains()