-
-
Notifications
You must be signed in to change notification settings - Fork 291
Expand file tree
/
Copy pathWORKSPACE
More file actions
176 lines (123 loc) · 4.87 KB
/
Copy pathWORKSPACE
File metadata and controls
176 lines (123 loc) · 4.87 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
workspace(name = "rules_scala")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("//scala:latest_deps.bzl", "rules_scala_dependencies")
rules_scala_dependencies()
# Only include the next two statements if using
# `--incompatible_enable_proto_toolchain_resolution`.
load("@platforms//host:extension.bzl", "host_platform_repo")
# Instantiates the `@host_platform` repo to work around:
# - https://github.com/bazelbuild/bazel/issues/22558
host_platform_repo(name = "host_platform")
# This is optional, but still safe to include even when not using
# `--incompatible_enable_proto_toolchain_resolution`. Requires invoking the
# `scala_protoc_toolchains` repo rule. Register this toolchain before any
# others.
register_toolchains("@rules_scala_protoc_toolchains//...:all")
# Required before `rules_java_dependencies` since `rules_java` 8.16.0.
load("@bazel_features//:deps.bzl", "bazel_features_deps")
bazel_features_deps()
load("@rules_java//java:rules_java_deps.bzl", "rules_java_dependencies")
rules_java_dependencies()
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
protobuf_deps()
load("@rules_java//java:repositories.bzl", "rules_java_toolchains")
rules_java_toolchains()
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies")
rules_proto_dependencies()
load("@rules_proto//proto:setup.bzl", "rules_proto_setup")
rules_proto_setup()
load("@rules_proto//proto:toolchains.bzl", "rules_proto_toolchains")
rules_proto_toolchains()
# Include this after loading `platforms`, `com_google_protobuf`, and
# `rules_proto` to enable the `//protoc` precompiled protocol compiler
# toolchains.
load("@rules_scala//protoc:toolchains.bzl", "scala_protoc_toolchains")
# This name can be anything, but we recommend `rules_scala_protoc_toolchains`.
scala_protoc_toolchains(name = "rules_scala_protoc_toolchains")
load("//:scala_config.bzl", "scala_config")
scala_config(enable_compiler_dependency_tracking = True)
load("//scala:toolchains.bzl", "scala_register_toolchains", "scala_toolchains")
scala_toolchains(
fetch_sources = True,
jmh = True,
junit = True,
scala_proto = True,
scalafmt = True,
scalatest = True,
specs2 = True,
twitter_scrooge = True,
)
register_toolchains(
"//scala:unused_dependency_checker_error_toolchain",
"//test/proto:scalapb_toolchain",
)
scala_register_toolchains()
# needed for the cross repo proto test
local_repository(
name = "proto_cross_repo_boundary",
path = "test/proto_cross_repo_boundary/repo",
)
local_repository(
name = "test_new_local_repo",
path = "third_party/test/new_local_repo",
)
local_repository(
name = "example_external_workspace",
path = "third_party/test/example_external_workspace",
)
http_archive(
name = "io_bazel_rules_go",
sha256 = "68af54cb97fbdee5e5e8fe8d210d15a518f9d62abfd71620c3eaff3b26a5ff86",
urls = [
"https://mirror.bazel.build/github.com/bazel-contrib/rules_go/releases/download/v0.59.0/rules_go-v0.59.0.zip",
"https://github.com/bazel-contrib/rules_go/releases/download/v0.59.0/rules_go-v0.59.0.zip",
],
)
load(
"@io_bazel_rules_go//go:deps.bzl",
"go_register_toolchains",
"go_rules_dependencies",
)
go_rules_dependencies()
go_register_toolchains(version = "1.25.5")
http_archive(
name = "bazelci_rules",
sha256 = "eca21884e6f66a88c358e580fd67a6b148d30ab57b1680f62a96c00f9bc6a07e",
strip_prefix = "bazelci_rules-1.0.0",
url = "https://github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz",
)
load("@bazelci_rules//:rbe_repo.bzl", "rbe_preconfig")
rbe_preconfig(
name = "rbe_default",
toolchain = "ubuntu2004-bazel-java11",
)
load("//scala/private/extensions:dev_deps.bzl", "dev_deps_repositories")
dev_deps_repositories()
register_toolchains("//test/toolchains:java21_toolchain_definition")
load(
"@rules_shell//shell:repositories.bzl",
"rules_shell_dependencies",
"rules_shell_toolchains",
)
rules_shell_dependencies()
rules_shell_toolchains()
http_archive(
name = "aspect_bazel_lib",
sha256 = "0019dfc4b32d63c1392aa264aed2253c1e0c2fb09216f8e2cc269bbfb8bb49b5",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/aspect_bazel_lib/releases/download/2.22.0/aspect_bazel_lib-2.22.0.tar.gz",
"https://github.com/bazelbuild/aspect_bazel_lib/releases/download/2.22.0/aspect_bazel_lib-2.22.0.tar.gz",
],
)
load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies", "aspect_bazel_lib_register_toolchains")
aspect_bazel_lib_dependencies()
aspect_bazel_lib_register_toolchains()
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
maybe(
host_platform_repo,
name = "host_platform",
)