-
Notifications
You must be signed in to change notification settings - Fork 113
/
Copy pathMODULE.bazel
181 lines (154 loc) · 5.6 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
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
module(
name = "io_bazel_rules_closure",
version = "0.15.0",
)
bazel_dep(
name = "bazel_skylib",
version = "1.7.1",
)
bazel_dep(
name = "platforms",
version = "0.0.5",
)
# TODO(mollyibot): Remove this in the future.
bazel_dep(
name = "rules_proto",
version = "7.0.2",
)
bazel_dep(
name = "protobuf",
version = "29.1",
repo_name = "com_google_protobuf",
)
#TODO(mollyibot):Remove this after switching to new protobuf release
bazel_dep(
name = "abseil-cpp",
version = "20240722.0",
)
bazel_dep(name = "google_bazel_common")
git_override(
module_name = "google_bazel_common",
commit = "34102e4cf748e2922697f28f629ecea687345254",
remote = "https://github.com/google/bazel-common",
)
# TODO: Switch to a release version once it's available in BCR.
# Otherwise, the root module has to declare the same override.
bazel_dep(
name = "rules_webtesting",
repo_name = "io_bazel_rules_webtesting",
)
git_override(
module_name = "rules_webtesting",
commit = "46b744fa916b5cefce6f0f84252f4ec89128a01b",
remote = "https://github.com/bazelbuild/rules_webtesting",
)
# TODO(mollyibot): Needed by rules_webtesting.
git_override(
module_name = "rules_scala",
commit = "031fb0d3a63467d87f25397eb8e23faa57d1d3a6",
remote = "https://github.com/mbland/rules_scala",
)
##### Java dependencies #####
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.closure-stylesheets:closure-stylesheets:1.5.0",
"com.google.dagger:dagger-producers:2.43.2",
"com.google.jimfs:jimfs:1.1",
"net.java.dev.javacc:javacc:7.0.13",
"org.jsoup:jsoup:1.16.1",
"org.seleniumhq.selenium:selenium-remote-driver:4.27.0",
"org.seleniumhq.selenium:selenium-api:4.27.0",
"org.seleniumhq.selenium:selenium-support:4.27.0",
],
)
# Using maven.artifact here because the version number vxxxxx cannot parsed correctly.
maven.artifact(
artifact = "closure-compiler",
group = "com.google.javascript",
version = "v20240317",
)
# javacc:javacc was not updated since 2008 and relocated to net.java.dev.javacc
maven.override(
coordinates = "javacc:javacc",
target = "@maven//:net_java_dev_javacc_javacc",
)
use_repo(maven, "maven")
##### Python dependencies #####
bazel_dep(
name = "rules_python",
version = "1.0.0",
)
##### Other dependencies #####
http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
http_file(
name = "fonts_noto_mono_deb",
sha256 = "71ff715cf50a74a8cc11b02e7c906b69a242d3d677e739e0b2d18cd23b7de375",
urls = [
"https://mirror.bazel.build/http.us.debian.org/debian/pool/main/f/fonts-noto/fonts-noto-mono_20161116-1_all.deb",
"http://http.us.debian.org/debian/pool/main/f/fonts-noto/fonts-noto-mono_20161116-1_all.deb",
],
)
http_file(
name = "libexpat_amd64_deb",
sha256 = "682d2321297c56dec327770efa986d4bef43a5acb1a5528b3098e05652998fae",
urls = [
"https://mirror.bazel.build/http.us.debian.org/debian/pool/main/e/expat/libexpat1_2.1.0-6+deb8u3_amd64.deb",
"http://http.us.debian.org/debian/pool/main/e/expat/libexpat1_2.1.0-6+deb8u3_amd64.deb",
],
)
http_file(
name = "libpng_amd64_deb",
sha256 = "a57b6d53169c67a7754719f4b742c96554a18f931ca5b9e0408fb6502bb77e80",
urls = [
"https://mirror.bazel.build/http.us.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.50-2+deb8u2_amd64.deb",
"http://http.us.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.50-2+deb8u2_amd64.deb",
],
)
http_file(
name = "libfontconfig_amd64_deb",
sha256 = "0bb54d61c13aa5b5253cb5e08aaca0dfc4c626a05ee30f51d0e3002cda166fec",
urls = [
"https://mirror.bazel.build/http.us.debian.org/debian/pool/main/f/fontconfig/libfontconfig1_2.11.0-6.3+deb8u1_amd64.deb",
"http://http.us.debian.org/debian/pool/main/f/fontconfig/libfontconfig1_2.11.0-6.3+deb8u1_amd64.deb",
],
)
http_file(
name = "libfreetype_amd64_deb",
sha256 = "80184d932f9b0acc130af081c60a2da114c7b1e7531c18c63174498fae47d862",
urls = [
"https://mirror.bazel.build/http.us.debian.org/debian/pool/main/f/freetype/libfreetype6_2.5.2-3+deb8u1_amd64.deb",
"http://http.us.debian.org/debian/pool/main/f/freetype/libfreetype6_2.5.2-3+deb8u1_amd64.deb",
],
)
http_file(
name = "fonts_noto_hinted_deb",
sha256 = "a71fcee2bc7820fc4e0c780bb9c7c6db8364fd2c5bac20867c5c33eed470dc51",
urls = [
"https://mirror.bazel.build/http.us.debian.org/debian/pool/main/f/fonts-noto/fonts-noto-hinted_20161116-1_all.deb",
"http://http.us.debian.org/debian/pool/main/f/fonts-noto/fonts-noto-hinted_20161116-1_all.deb",
],
)
platform_http_file = use_repo_rule("//closure/private:platform_http_file.bzl", "platform_http_file")
platform_http_file(
name = "phantomjs",
amd64_sha256 = "86dd9a4bf4aee45f1a84c9f61cf1947c1d6dce9b9e8d2a907105da7852460d2f",
amd64_urls = [
"https://mirror.bazel.build/bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2",
"https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2",
],
macos_sha256 = "538cf488219ab27e309eafc629e2bcee9976990fe90b1ec334f541779150f8c1",
macos_urls = [
"https://mirror.bazel.build/bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-macosx.zip",
"https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-macosx.zip",
],
)