-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMODULE.bazel
82 lines (77 loc) · 1.83 KB
/
MODULE.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
module(
name = "any-sketch-java",
repo_name = "any_sketch_java",
)
TRUTH_VERSION = "1.4.4"
# Bazel Central Registry deps.
bazel_dep(
name = "rules_java",
version = "8.6.2",
)
bazel_dep(
name = "protobuf",
version = "27.3",
repo_name = "com_google_protobuf",
)
bazel_dep(
name = "rules_jvm_external",
version = "6.6",
)
# WFA registry deps.
bazel_dep(
name = "rules_swig",
version = "0.1.0",
repo_name = "wfa_rules_swig",
)
bazel_dep(
name = "any-sketch",
version = "0.10.0",
repo_name = "any_sketch",
)
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.artifact(
testonly = True,
artifact = "truth",
group = "com.google.truth",
version = TRUTH_VERSION,
)
maven.artifact(
testonly = True,
artifact = "truth-java8-extension",
group = "com.google.truth.extensions",
version = TRUTH_VERSION,
)
maven.artifact(
testonly = True,
artifact = "truth-proto-extension",
group = "com.google.truth.extensions",
version = TRUTH_VERSION,
)
maven.artifact(
testonly = True,
artifact = "truth-liteproto-extension",
group = "com.google.truth.extensions",
version = TRUTH_VERSION,
)
maven.install(
artifacts = [
"com.google.guava:guava:33.3.1-jre",
"junit:junit:4.13.2",
"com.google.protobuf:protobuf-java",
],
boms = [
# Must be compatible with protobuf version.
"com.google.protobuf:protobuf-bom:4.27.5",
],
fail_if_repin_required = True,
fetch_sources = True, # For IDE support.
lock_file = "//:maven_install.json",
resolver = "maven",
strict_visibility = True,
)
use_repo(maven, "maven")
# Force a newer version of boringssl than the transitive grpc dep.
single_version_override(
module_name = "boringssl",
version = "0.0.0-20230215-5c22014",
)