-
Notifications
You must be signed in to change notification settings - Fork 147
/
Copy pathMODULE.bazel
132 lines (110 loc) · 3.59 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
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
module(
name = "com_google_j2cl",
version = "v20250115",
bazel_compatibility = [">=8.0.1"],
)
bazel_dep(
name = "protobuf",
version = "29.0",
repo_name = "com_google_protobuf",
)
bazel_dep(
name = "bazel_skylib",
version = "1.7.1",
)
bazel_dep(
name = "platforms",
version = "0.0.5",
)
bazel_dep(
name = "rules_kotlin",
version = "1.9.6",
)
bazel_dep(
name = "rules_license",
version = "1.0.0",
)
# Works around https://github.com/bazelbuild/rules_python/issues/1169
bazel_dep(
name = "rules_python",
version = "0.23.1",
)
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = False,
ignore_root_user_error = True,
python_version = "3.11",
)
# Override rules_webtesting dependencies
bazel_dep(
name = "rules_webtesting",
repo_name = "io_bazel_rules_webtesting",
)
git_override(
module_name = "rules_webtesting",
commit = "7a1c88f61e35ee5ce0892ae24e2aa2a3106cbfed",
remote = "https://github.com/bazelbuild/rules_webtesting",
)
# rules_scala is not available in BCR.
# The root module has to declare the same override as rules_webtesting.
git_override(
module_name = "rules_scala",
commit = "219e63983e8e483e66ebf70372969ba227382001",
remote = "https://github.com/mbland/rules_scala",
)
bazel_dep(
name = "io_bazel_rules_closure",
)
# io_bazel_rules_closure is not available in BCR.
git_override(
module_name = "io_bazel_rules_closure",
commit = "39aefd7a0a355e8b93c85bf275f3c119454e6830",
remote = "https://github.com/bazelbuild/rules_closure",
)
bazel_dep(
name = "google_bazel_common",
version = "0.0.1",
)
bazel_dep(
name = "rules_java",
version = "8.6.1",
)
bazel_dep(
name = "rules_jvm_external",
version = "6.6",
)
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.install(
artifacts = [
"args4j:args4j:2.33",
"com.google.j2objc:j2objc-annotations:1.3",
"com.google.escapevelocity:escapevelocity:jar:1.1",
"com.google.errorprone:javac:jar:9+181-r4173-1",
"com.google.code.gson:gson:2.10.1",
"org.eclipse.jdt:org.eclipse.jdt.core:jar:3.22.0",
"org.eclipse.platform:org.eclipse.equinox.common:jar:3.12.0",
],
)
use_repo(maven, "maven")
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_google_jsinterop_annotations-j2cl",
sha256 = "4164229681bcaf3d130b6c4f463bc345af69de5ad548120e9818f31c70142717",
strip_prefix = "jsinterop-annotations-d2b3aee14b617a81570b788f981926a829ac892c",
urls = ["https://github.com/google/jsinterop-annotations/archive/d2b3aee14b617a81570b788f981926a829ac892c.zip"],
)
http_archive(
name = "bazel_common_javadoc",
sha256 = "3f090bfb3c0c66e3c2d9ae229d184af1147e4c06223551aeb2ff292661371b9a",
strip_prefix = "bazel-common-ebce2af3f0de560b649dcf98ef732a56b80e829c/tools/javadoc",
urls = ["https://github.com/google/bazel-common/archive/ebce2af3f0de560b649dcf98ef732a56b80e829c.zip"],
)
http_archive(
name = "com_google_binaryen",
build_file = "@com_google_j2cl//build_defs/internal_do_not_use/binaryen:BUILD.binaryen",
patch_args = ["-p1"],
patches = ["@com_google_j2cl//build_defs/internal_do_not_use/binaryen:generate_intrinsics.patch"],
sha256 = "a3b0c6b4884cd147913088817f6e238e700394834a7cbd8610acd6b23bdd4860",
strip_prefix = "binaryen-6645f0c05b8e9268f35742bb6b0a67e0a9c40795",
url = "https://github.com/WebAssembly/binaryen/archive/6645f0c05b8e9268f35742bb6b0a67e0a9c40795.zip",
)