forked from buildfarm/buildfarm
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathWORKSPACE
111 lines (88 loc) · 3.48 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
workspace(name = "build_buildfarm")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file", "http_jar")
# Needed for "well-known protos" and @com_google_protobuf//:protoc.
http_archive(
name = "com_google_protobuf",
sha256 = "33cba8b89be6c81b1461f1c438424f7a1aa4e31998dbe9ed6f8319583daac8c7",
strip_prefix = "protobuf-3.10.0",
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.10.0.zip"],
)
# Needed for @grpc_java//compiler:grpc_java_plugin.
http_archive(
name = "io_grpc_grpc_java",
patch_args = ["-p1"],
patches = ["//third_party/io_grpc_grpc_java:7461ef983d.patch"],
sha256 = "11f2930cf31c964406e8a7e530272a263fbc39c5f8d21410b2b927b656f4d9be",
strip_prefix = "grpc-java-1.26.0",
urls = ["https://github.com/grpc/grpc-java/archive/v1.26.0.zip"],
)
http_archive(
name = "googleapis",
build_file = "@build_buildfarm//:BUILD.googleapis",
sha256 = "7b6ea252f0b8fb5cd722f45feb83e115b689909bbb6a393a873b6cbad4ceae1d",
strip_prefix = "googleapis-143084a2624b6591ee1f9d23e7f5241856642f4d",
url = "https://github.com/googleapis/googleapis/archive/143084a2624b6591ee1f9d23e7f5241856642f4d.zip",
)
# The API that we implement.
http_archive(
name = "remote_apis",
build_file = "@build_buildfarm//:BUILD.remote_apis",
patch_args = ["-p1"],
patches = ["@build_buildfarm//third_party/remote-apis:remote-apis.patch"],
sha256 = "21ad15be502ef529ca07fdda56d25d6678647b954d41f08a040241ea5e43dce1",
strip_prefix = "remote-apis-b5123b1bb2853393c7b9aa43236db924d7e32d61",
url = "https://github.com/bazelbuild/remote-apis/archive/b5123b1bb2853393c7b9aa43236db924d7e32d61.zip",
)
# Download the rules_docker repository at release v0.14.1
http_archive(
name = "io_bazel_rules_docker",
patch_args = ["-p1"],
patches = ["@build_buildfarm//third_party/rules_docker:rules_docker.patch"],
sha256 = "dc97fccceacd4c6be14e800b2a00693d5e8d07f69ee187babfd04a80a9f8e250",
strip_prefix = "rules_docker-0.14.1",
urls = ["https://github.com/bazelbuild/rules_docker/archive/v0.14.1.tar.gz"],
)
http_jar(
name = "jedis",
sha256 = "10c844cb3338884da468608f819c11d5c90354b170c3fe445203497000c06ba3",
urls = [
"https://github.com/werkt/jedis/releases/download/jedis-3.0.1-8209fd5a88/jedis-3.0.1-8209fd5a88.jar",
],
)
load("//3rdparty:workspace.bzl", "maven_dependencies")
maven_dependencies()
load("@remote_apis//:repository_rules.bzl", "switched_rules_by_language")
switched_rules_by_language(
name = "bazel_remote_apis_imports",
java = True,
)
load(
"@io_bazel_rules_docker//repositories:repositories.bzl",
container_repositories = "repositories",
)
container_repositories()
load("@io_bazel_rules_docker//repositories:deps.bzl", container_deps = "deps")
container_deps()
load("@io_bazel_rules_docker//container:container.bzl", "container_pull")
load(
"@io_bazel_rules_docker//java:image.bzl",
_java_image_repos = "repositories",
)
_java_image_repos()
container_pull(
name = "java_base",
digest = "sha256:8c1769cb253bdecc257470f7fba05446a55b70805fa686f227a11655a90dfe9e",
registry = "gcr.io",
repository = "distroless/java",
)
load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories")
grpc_java_repositories(
omit_com_google_guava = True,
omit_com_google_guava_failureaccess = True,
)
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
bind(
name = "jar/redis/clients/jedis",
actual = "@jedis//jar",
)