-
Notifications
You must be signed in to change notification settings - Fork 2
/
WORKSPACE
293 lines (235 loc) · 9.07 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
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
workspace(name = "stuff")
scala_version = "2.13"
scala_full_version = "%s.6" % scala_version
rules_scala_version = "22f0a807a0fcca827cc70fdff320e3bb1f5ff5df"
rules_jvm_external_tag = "3.2"
rules_jvm_external_sha = "82262ff4223c5fda6fb7ff8bd63db8131b51b413d26eb49e3131037e79e324af"
protobuf_version = "204f99488ce1ef74565239cf3963111ae4c774b7"
protobuf_version_sha256 = "98e76e0d31146bf878160db65b2ec2d98db333db8730573c4efec987da83c877"
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_scala",
#sha256 = "f0c7b96e3e778cec41125501782734ea41ecb42f3e00c05786818438a434b4c7",
strip_prefix = "rules_scala-%s" % rules_scala_version,
type = "zip",
url = "https://github.com/bazelbuild/rules_scala/archive/%s.zip" % rules_scala_version,
)
http_archive(
name = "rules_proto",
sha256 = "66bfdf8782796239d3875d37e7de19b1d94301e8972b3cbd2446b332429b4df1",
strip_prefix = "rules_proto-4.0.0",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz",
"https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz",
],
)
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
rules_proto_dependencies()
rules_proto_toolchains()
http_archive(
name = "rules_jvm_external",
sha256 = rules_jvm_external_sha,
strip_prefix = "rules_jvm_external-%s" % rules_jvm_external_tag,
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % rules_jvm_external_tag,
)
http_archive(
name = "com_google_protobuf",
sha256 = protobuf_version_sha256,
strip_prefix = "protobuf-%s" % protobuf_version,
url = "https://github.com/protocolbuffers/protobuf/archive/%s.tar.gz" % protobuf_version,
)
skylib_version = "1.0.3"
http_archive(
name = "bazel_skylib",
sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
type = "tar.gz",
url = "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/{}/bazel-skylib-{}.tar.gz".format(skylib_version, skylib_version),
)
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
register_toolchains("//tools:default_scala_toolchain")
load("@io_bazel_rules_scala//:scala_config.bzl", "scala_config")
scala_config(scala_version = scala_full_version)
load("@io_bazel_rules_scala//scala:scala.bzl", "scala_repositories")
scala_repositories(fetch_sources = True)
load("@io_bazel_rules_scala//scala:toolchains.bzl", "scala_register_toolchains")
scala_register_toolchains()
load("@io_bazel_rules_scala//testing:specs2_junit.bzl", "specs2_junit_repositories", "specs2_junit_toolchain")
specs2_junit_repositories()
specs2_junit_toolchain()
load("@io_bazel_rules_scala//jmh:jmh.bzl", "jmh_repositories")
jmh_repositories()
load("@io_bazel_rules_scala//scala_proto:scala_proto.bzl", "scala_proto_repositories")
scala_proto_repositories()
load("@io_bazel_rules_scala//scala_proto:toolchains.bzl", "scala_proto_register_toolchains")
scala_proto_register_toolchains()
load("@rules_jvm_external//:defs.bzl", "maven_install")
maven_repositories = ["https://repo1.maven.org/maven2"]
maven_install(
artifacts = [
"org.specs2:specs2-mock_%s:4.6.0" % scala_version,
"org.slf4j:slf4j-api:1.7.25",
"org.scala-lang.modules:scala-async_%s:0.10.0" % scala_version,
],
fetch_sources = True,
repositories = maven_repositories,
)
maven_install(
name = "compression",
artifacts = [
"org.lz4:lz4-java:1.8.0",
"com.github.luben:zstd-jni:1.5.2-5",
"org.apache.commons:commons-compress:1.22",
"org.xerial.snappy:snappy-java:1.1.8.4",
"com.aayushatharva.brotli4j:brotli4j:1.9.0",
"com.aayushatharva.brotli4j:native-linux-x86_64:1.9.0",
"org.apache.commons:commons-lang3:3.12.0",
],
fetch_sources = True,
repositories = maven_repositories,
)
maven_install(
name = "mysql_blob_maven",
artifacts = [
"mysql:mysql-connector-java:8.0.30",
],
fetch_sources = True,
repositories = maven_repositories,
)
maven_install(
name = "mysql_hashset_maven",
artifacts = [
"mysql:mysql-connector-java:8.0.30",
"com.zaxxer:HikariCP:5.0.1",
],
fetch_sources = True,
repositories = maven_repositories,
)
maven_install(
name = "mysql_streaming_maven",
artifacts = [
"org.drizzle.jdbc:drizzle-jdbc:1.4",
"org.mariadb.jdbc:mariadb-java-client:2.2.0",
"mysql:mysql-connector-java:6.0.6",
"com.wix:wix-embedded-mysql:4.2.0",
],
fetch_sources = True,
repositories = maven_repositories,
)
maven_install(
name = "offheap_maven",
artifacts = [
"io.netty:netty-common:4.1.79.Final",
"io.netty:netty-buffer:4.1.79.Final",
"io.netty:netty5-common:5.0.0.Alpha4",
"io.netty:netty5-buffer:5.0.0.Alpha4",
"io.lettuce:lettuce-core:6.2.0.RELEASE",
],
fetch_sources = True,
repositories = maven_repositories,
)
http_archive(
name = "apangin_nalim_repo",
build_file = "@//:nalim.bazel",
type = "zip",
url = "https://github.com/apangin/nalim/archive/293eb4ee47918fdfd9e7540d13ba762ff47fa1e1.zip",
)
maven_install(
name = "nativeaccess",
artifacts = [
"com.github.jnr:jnr-ffi:2.2.12",
"org.bytedeco.javacpp-presets:systems-platform:1.4.4",
"net.java.dev.jna:jna-platform:5.12.1",
"com.nativelibs4java:bridj:0.7.0",
],
fetch_sources = True,
repositories = maven_repositories,
)
maven_install(
name = "jwt",
artifacts = [
"commons-codec:commons-codec:1.15",
],
fetch_sources = True,
repositories = maven_repositories,
)
maven_install(
name = "scala_serialization_maven",
artifacts = [
"com.github.plokhotnyuk.jsoniter-scala:jsoniter-scala-macros_%s:2.15.0" % scala_version,
"com.google.protobuf:protobuf-java:3.21.5",
"com.fasterxml.jackson.core:jackson-databind:2.13.3",
"com.fasterxml.jackson.core:jackson-core:2.13.3",
"com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.13.3",
"com.fasterxml.jackson.dataformat:jackson-dataformat-smile:2.13.3",
"com.fasterxml.jackson.module:jackson-module-scala_%s:2.13.3" % scala_version,
"com.lihaoyi:upickle_%s:2.0.0" % scala_version,
"com.twitter:chill_%s:0.10.0" % scala_version,
"io.suzaku:boopickle_%s:1.4.0" % scala_version,
"io.circe:circe-core_%s:0.15.0-M1" % scala_version,
"io.circe:circe-generic_%s:0.15.0-M1" % scala_version,
"io.circe:circe-parser_%s:0.15.0-M1" % scala_version,
"javax.annotation:javax.annotation-api:1.3.2",
"org.apache.thrift:libthrift:0.16.0",
"org.capnproto:runtime:0.1.14",
"org.slf4j:slf4j-api:1.7.36",
"org.slf4j:slf4j-nop:1.7.36",
],
fetch_sources = True,
repositories = maven_repositories,
)
## ██████ ██ ██ ███████ ████████
## ██ ██ ██ ██ ██ ██
## ██████ ██ ██ ███████ ██
## ██ ██ ██ ██ ██ ██
## ██ ██ ██████ ███████ ██
http_archive(
name = "rules_rust",
sha256 = "0cc7e6b39e492710b819e00d48f2210ae626b717a3ab96e048c43ab57e61d204",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_rust/releases/download/0.10.0/rules_rust-v0.10.0.tar.gz",
"https://github.com/bazelbuild/rules_rust/releases/download/0.10.0/rules_rust-v0.10.0.tar.gz",
],
)
load("@rules_rust//rust:repositories.bzl", "rules_rust_dependencies", "rust_register_toolchains")
rules_rust_dependencies()
rust_register_toolchains(
edition = "2021",
iso_date = "2022-10-15",
version = "nightly",
)
# https://bazelbuild.github.io/rules_rust/crate_universe.html
load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies")
crate_universe_dependencies()
# https://bazelbuild.github.io/rules_rust/crate_universe.html#direct-packages
# https://github.com/bazelbuild/rules_rust/blob/main/examples/crate_universe/WORKSPACE.bazel
load("@rules_rust//crate_universe:defs.bzl", "crate", "crates_repository", "render_config")
crates_repository(
name = "rs",
annotations = {
"*": [crate.annotation(rustc_flags = ["--codegen=opt-level=3"])],
},
cargo_config = "//:Cargo.toml",
cargo_lockfile = "//:Cargo.Bazel.lock",
lockfile = "//:cargo-bazel-lock.json",
packages = {
"base64": crate.spec(
version = "0.13.0",
),
"base64-simd": crate.spec(
git = "https://github.com/Nugine/simd",
rev = "4d6b948a921083e420b3465933b20dee9356cb78",
),
"jni": crate.spec(
version = "0.19.0",
),
"libc": crate.spec(
version = "0.2.0",
),
},
render_config = render_config(
default_package_name = "",
),
)
load("@rs//:defs.bzl", crate_index_repositories = "crate_repositories")
crate_index_repositories()