blob: b1bedac8dafdce6c89fcb19eccc31d712105584c [file] [log] [blame]
David Ostrovsky608022f2016-11-20 22:43:33 +01001workspace(name = "gitiles")
David Ostrovskyc9a62592017-03-27 20:46:58 +02002
David Pursehouse900b8452018-10-16 13:10:15 +09003load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4
5http_archive(
David Ostrovskyfe33adf2019-10-08 09:54:05 +02006 name = "rules_python",
7 sha256 = "e5470e92a18aa51830db99a4d9c492cc613761d5bdb7131c04bd92b9834380f6",
8 strip_prefix = "rules_python-4b84ad270387a7c439ebdccfd530e2339601ef27",
9 urls = ["https://github.com/bazelbuild/rules_python/archive/4b84ad270387a7c439ebdccfd530e2339601ef27.tar.gz"],
10)
11
David Ostrovsky608022f2016-11-20 22:43:33 +010012load("//tools:bazlets.bzl", "load_bazlets")
David Ostrovskyc9a62592017-03-27 20:46:58 +020013
David Ostrovskyff7c81a2016-11-20 23:27:10 +010014load_bazlets(
Antoine Musso1da888c2022-09-08 16:33:12 +020015 commit = "e68cc7a45d9ee2b100024b9b12533b50a4598585",
David Ostrovskyf9bb4162017-03-27 21:11:20 +020016 # local_path = "/home/<user>/projects/bazlets",
David Ostrovskyff7c81a2016-11-20 23:27:10 +010017)
David Ostrovskyc9a62592017-03-27 20:46:58 +020018
19load(
20 "@com_googlesource_gerrit_bazlets//tools:maven_jar.bzl",
David Pursehoused88265e2018-07-25 10:01:18 +010021 "maven_jar",
David Ostrovskyc9a62592017-03-27 20:46:58 +020022)
David Ostrovsky608022f2016-11-20 22:43:33 +010023
Matthias Sohnb3ee1562022-01-07 10:23:02 +010024# JGit external repository consumed from git submodule
25local_repository(
26 name = "jgit",
27 path = "modules/jgit",
28)
29
Fabien Sanglardacb511d2022-09-01 17:09:48 -070030# Java-Prettify external repository consumed from git submodule
31local_repository(
David Ostrovsky3dda8992023-04-28 18:30:07 +020032 name = "java-prettify",
33 path = "modules/java-prettify",
Fabien Sanglardacb511d2022-09-01 17:09:48 -070034)
35
David Ostrovsky3b357632022-05-11 12:42:59 +020036register_toolchains("//tools:error_prone_warnings_toolchain_java11_definition")
37
38register_toolchains("//tools:error_prone_warnings_toolchain_java17_definition")
39
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +020040maven_jar(
Matthias Sohnd5ce8212023-09-30 21:49:14 +020041 name = "error-prone-annotations",
42 artifact = "com.google.errorprone:error_prone_annotations:2.22.0",
43 sha1 = "bfb9e4281a4cea34f0ec85b3acd47621cfab35b4",
44)
45
46maven_jar(
David Ostrovsky2d4e82e2023-09-29 13:08:41 +020047 name = "commons-codec",
48 artifact = "commons-codec:commons-codec:1.15",
49 sha1 = "49d94806b6e3dc933dacbd8acb0fdbab8ebd1e5d",
50)
51
52maven_jar(
David Pursehouse56b50a22019-03-12 16:51:49 +090053 name = "commons-lang3",
Nasser Grainawi7cb3e472021-08-09 16:51:30 -060054 artifact = "org.apache.commons:commons-lang3:3.8.1",
55 sha1 = "6505a72a097d9270f7a9e7bf42c4238283247755",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +020056)
57
58maven_jar(
David Pursehouse56b50a22019-03-12 16:51:49 +090059 name = "commons-text",
David Pursehousea4d39352018-01-23 08:27:29 +090060 artifact = "org.apache.commons:commons-text:1.2",
61 sha1 = "74acdec7237f576c4803fff0c1008ab8a3808b2b",
62)
63
64maven_jar(
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +020065 name = "gson",
David Ostrovsky3dda8992023-04-28 18:30:07 +020066 artifact = "com.google.code.gson:gson:2.9.0",
67 sha1 = "8a1167e089096758b49f9b34066ef98b2f4b37aa",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +020068)
69
70maven_jar(
71 name = "guava",
David Ostrovsky1219bcd2022-01-30 16:05:13 +010072 artifact = "com.google.guava:guava:32.1.2-jre",
73 sha1 = "5e64ec7e056456bef3a4bc4c6fdaef71e8ab6318",
David Pursehousea082ad92019-03-12 16:44:20 +090074)
75
76maven_jar(
David Pursehouse56b50a22019-03-12 16:51:49 +090077 name = "guava-failureaccess",
David Pursehousea082ad92019-03-12 16:44:20 +090078 artifact = "com.google.guava:failureaccess:1.0.1",
79 sha1 = "1dcf1de382a0bf95a3d8b0849546c88bac1292c9",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +020080)
81
82maven_jar(
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +020083 name = "jsr305",
Nasser Grainawi7cb3e472021-08-09 16:51:30 -060084 artifact = "com.google.code.findbugs:jsr305:3.0.1",
David Ostrovsky608022f2016-11-20 22:43:33 +010085 attach_source = False,
Nasser Grainawi7cb3e472021-08-09 16:51:30 -060086 sha1 = "f7be08ec23c21485b9b5a1cf1654c2ec8c58168d",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +020087)
88
Ivan Frade21831b92022-12-01 21:54:21 -080089COMMONMARK_VERSION = "0.21.0"
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +020090
91# When upgrading commonmark it should also be updated in plugins/gitiles
92maven_jar(
93 name = "commonmark",
Ivan Frade21831b92022-12-01 21:54:21 -080094 artifact = "org.commonmark:commonmark:" + COMMONMARK_VERSION,
95 sha1 = "c98f0473b17c87fe4fa2fc62a7c6523a2fe018f0",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +020096)
97
98maven_jar(
David Pursehouse56b50a22019-03-12 16:51:49 +090099 name = "cm-autolink",
Ivan Frade21831b92022-12-01 21:54:21 -0800100 artifact = "org.commonmark:commonmark-ext-autolink:" + COMMONMARK_VERSION,
101 sha1 = "55c0312cf443fa3d5af0daeeeca00d6deee3cf90",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200102)
103
104maven_jar(
105 name = "autolink",
Ivan Frade21831b92022-12-01 21:54:21 -0800106 artifact = "org.nibor.autolink:autolink:0.10.0",
107 sha1 = "6579ea7079be461e5ffa99f33222a632711cc671",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200108)
109
110maven_jar(
David Pursehouse56b50a22019-03-12 16:51:49 +0900111 name = "gfm-strikethrough",
Ivan Frade21831b92022-12-01 21:54:21 -0800112 artifact = "org.commonmark:commonmark-ext-gfm-strikethrough:" + COMMONMARK_VERSION,
113 sha1 = "953f4b71e133a98fcca93f3c3f4e58b895b76d1f",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200114)
115
116maven_jar(
David Pursehouse56b50a22019-03-12 16:51:49 +0900117 name = "gfm-tables",
Ivan Frade21831b92022-12-01 21:54:21 -0800118 artifact = "org.commonmark:commonmark-ext-gfm-tables:" + COMMONMARK_VERSION,
119 sha1 = "fb7d65fa89a4cfcd2f51535d2549b570cf1dbd1a",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200120)
121
122maven_jar(
Matthias Sohne7a33c22022-01-07 11:57:24 +0100123 name = "servlet-api",
Nasser Grainawi7cb3e472021-08-09 16:51:30 -0600124 artifact = "javax.servlet:javax.servlet-api:3.1.0",
125 sha1 = "3cd63d075497751784b2fa84be59432f4905bf7c",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200126)
127
128maven_jar(
129 name = "truth",
Marco Millera7030dc2020-10-22 11:35:56 -0400130 artifact = "com.google.truth:truth:1.1",
131 sha1 = "6a096a16646559c24397b03f797d0c9d75ee8720",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200132)
133
Alice Kober-Sotzek7136c1a2018-11-07 13:47:52 +0100134# Indirect dependency of truth
135maven_jar(
136 name = "diffutils",
137 artifact = "com.googlecode.java-diff-utils:diffutils:1.3.0",
138 sha1 = "7e060dd5b19431e6d198e91ff670644372f60fbd",
139)
140
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200141maven_jar(
142 name = "soy",
Tim Zhou3cc35482023-10-23 23:22:51 +0000143 artifact = "com.google.template:soy:2023-09-13",
144 sha1 = "b88a029df7408c58452f80d6518723f1386d69b5",
David Ostrovsky1219bcd2022-01-30 16:05:13 +0100145)
146
147FLOGGER_VERS = "0.7.4"
148
149maven_jar(
150 name = "log4j",
151 artifact = "ch.qos.reload4j:reload4j:1.2.18.0",
152 sha1 = "03b2b708403ab00eb0678bffdbbd567070bbdfab",
153)
154
155maven_jar(
156 name = "flogger",
157 artifact = "com.google.flogger:flogger:" + FLOGGER_VERS,
158 sha1 = "cec29ed8b58413c2e935d86b12d6b696dc285419",
159)
160
161maven_jar(
162 name = "flogger-log4j-backend",
163 artifact = "com.google.flogger:flogger-log4j-backend:" + FLOGGER_VERS,
164 sha1 = "7486b1c0138647cd7714eccb8ce37b5f2ae20a76",
165)
166
167maven_jar(
168 name = "flogger-google-extensions",
169 artifact = "com.google.flogger:google-extensions:" + FLOGGER_VERS,
170 sha1 = "c49493bd815e3842b8406e21117119d560399977",
171)
172
173maven_jar(
174 name = "flogger-system-backend",
175 artifact = "com.google.flogger:flogger-system-backend:" + FLOGGER_VERS,
176 sha1 = "4bee7ebbd97c63ca7fb17529aeb49a57b670d061",
David Pursehouse9acccb02017-03-18 14:25:51 +0900177)
178
179maven_jar(
David Pursehouse56b50a22019-03-12 16:51:49 +0900180 name = "html-types",
Alice Kober-Sotzek3a727bf2019-04-04 13:19:37 +0200181 artifact = "com.google.common.html.types:types:1.0.8",
182 sha1 = "9e9cf7bc4b2a60efeb5f5581fe46d17c068e0777",
David Pursehouse9acccb02017-03-18 14:25:51 +0900183)
184
185maven_jar(
186 name = "protobuf",
David Ostrovsky3dda8992023-04-28 18:30:07 +0200187 artifact = "com.google.protobuf:protobuf-java:3.19.4",
188 sha1 = "748e4e0b9e4fa6b9b1fe65690aa04a9db56cfc4d",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200189)
190
191maven_jar(
192 name = "icu4j",
193 artifact = "com.ibm.icu:icu4j:57.1",
194 sha1 = "198ea005f41219f038f4291f0b0e9f3259730e92",
195)
196
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200197maven_jar(
Matthias Sohne7a33c22022-01-07 11:57:24 +0100198 name = "javaewah",
David Ostrovsky3dda8992023-04-28 18:30:07 +0200199 artifact = "com.googlecode.javaewah:JavaEWAH:1.1.12",
200 sha1 = "9feecc2b24d6bc9ff865af8d082f192238a293eb",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200201)
202
David Pursehouse9de12ac2018-01-17 10:23:46 +0900203# When upgrading commons_compress, upgrade tukaani_xz to the
204# corresponding version
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200205maven_jar(
David Pursehouse56b50a22019-03-12 16:51:49 +0900206 name = "commons-compress",
David Ostrovskyf9508392022-01-08 10:10:09 +0100207 artifact = "org.apache.commons:commons-compress:1.21",
208 sha1 = "4ec95b60d4e86b5c95a0e919cb172a0af98011ef",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200209)
210
David Pursehouse9de12ac2018-01-17 10:23:46 +0900211# Transitive dependency of commons_compress. Should only be
212# upgraded at the same time as commons_compress.
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200213maven_jar(
David Pursehouse56b50a22019-03-12 16:51:49 +0900214 name = "tukaani-xz",
David Ostrovskyf9508392022-01-08 10:10:09 +0100215 artifact = "org.tukaani:xz:1.9",
David Ostrovsky608022f2016-11-20 22:43:33 +0100216 attach_source = False,
David Ostrovskyf9508392022-01-08 10:10:09 +0100217 sha1 = "1ea4bec1a921180164852c65006d928617bd2caf",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200218)
219
220maven_jar(
221 name = "junit",
David Pursehouse800ffc72018-09-22 16:49:54 +0900222 artifact = "junit:junit:4.12",
223 sha1 = "2973d150c0dc1fefe998f834810d68f278ea58ec",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200224)
225
226maven_jar(
Jonathan Niederc383b262022-03-16 17:14:32 -0700227 name = "hamcrest",
228 artifact = "org.hamcrest:hamcrest:2.2",
229 sha1 = "1820c0968dba3a11a1b30669bb1f01978a91dedc",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200230)
231
Matthias Sohnb3ee1562022-01-07 10:23:02 +0100232maven_jar(
233 name = "mockito",
234 artifact = "org.mockito:mockito-core:2.23.0",
235 sha1 = "497ddb32fd5d01f9dbe99a2ec790aeb931dff1b1",
236)
237
David Ostrovsky3dda8992023-04-28 18:30:07 +0200238BYTE_BUDDY_VERSION = "1.10.7"
Matthias Sohnb3ee1562022-01-07 10:23:02 +0100239
240maven_jar(
241 name = "bytebuddy",
242 artifact = "net.bytebuddy:byte-buddy:" + BYTE_BUDDY_VERSION,
David Ostrovsky3dda8992023-04-28 18:30:07 +0200243 sha1 = "1eefb7dd1b032b33c773ca0a17d5cc9e6b56ea1a",
Matthias Sohnb3ee1562022-01-07 10:23:02 +0100244)
245
246maven_jar(
247 name = "bytebuddy-agent",
248 artifact = "net.bytebuddy:byte-buddy-agent:" + BYTE_BUDDY_VERSION,
David Ostrovsky3dda8992023-04-28 18:30:07 +0200249 sha1 = "c472fad33f617228601172682aa64f8b78508045",
Matthias Sohnb3ee1562022-01-07 10:23:02 +0100250)
251
252maven_jar(
253 name = "objenesis",
254 artifact = "org.objenesis:objenesis:2.6",
255 sha1 = "639033469776fd37c08358c6b92a4761feb2af4b",
256)
257
David Ostrovsky3dda8992023-04-28 18:30:07 +0200258SL_VERS = "1.7.36"
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200259
260maven_jar(
Matthias Sohne7a33c22022-01-07 11:57:24 +0100261 name = "log-api",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200262 artifact = "org.slf4j:slf4j-api:" + SL_VERS,
David Ostrovsky3dda8992023-04-28 18:30:07 +0200263 sha1 = "6c62681a2f655b49963a5983b8b0950a6120ae14",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200264)
265
266maven_jar(
David Pursehouse56b50a22019-03-12 16:51:49 +0900267 name = "slf4j-simple",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200268 artifact = "org.slf4j:slf4j-simple:" + SL_VERS,
David Ostrovsky3dda8992023-04-28 18:30:07 +0200269 sha1 = "a41f9cfe6faafb2eb83a1c7dd2d0dfd844e2a936",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200270)
271
David Ostrovsky3dda8992023-04-28 18:30:07 +0200272JETTY_VERSION = "9.4.49.v20220914"
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200273
274maven_jar(
275 name = "servlet",
276 artifact = "org.eclipse.jetty:jetty-servlet:" + JETTY_VERSION,
David Ostrovsky3dda8992023-04-28 18:30:07 +0200277 sha1 = "53ca0898f02e72b6830551031ee0062430134a05",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200278)
279
280maven_jar(
281 name = "security",
282 artifact = "org.eclipse.jetty:jetty-security:" + JETTY_VERSION,
David Ostrovsky3dda8992023-04-28 18:30:07 +0200283 sha1 = "057a67eeb12078b620131664b3b7a37ea4c5aefe",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200284)
285
286maven_jar(
287 name = "server",
288 artifact = "org.eclipse.jetty:jetty-server:" + JETTY_VERSION,
David Ostrovsky3dda8992023-04-28 18:30:07 +0200289 sha1 = "502f99eed028139e71a4afebefa291ace12b9c1c",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200290)
291
292maven_jar(
293 name = "continuation",
294 artifact = "org.eclipse.jetty:jetty-continuation:" + JETTY_VERSION,
David Ostrovsky3dda8992023-04-28 18:30:07 +0200295 sha1 = "0df64c20caeba57b681abc252bffd51d19f5be70",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200296)
297
298maven_jar(
299 name = "http",
300 artifact = "org.eclipse.jetty:jetty-http:" + JETTY_VERSION,
David Ostrovsky3dda8992023-04-28 18:30:07 +0200301 sha1 = "ef1e3bde212115eb4bb0740aaf79029b624d4e30",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200302)
303
304maven_jar(
305 name = "io",
306 artifact = "org.eclipse.jetty:jetty-io:" + JETTY_VERSION,
David Ostrovsky3dda8992023-04-28 18:30:07 +0200307 sha1 = "cb33d9a3bdb6e2173b9b9cfc94c0b45f9a21a1af",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200308)
309
310maven_jar(
311 name = "util",
312 artifact = "org.eclipse.jetty:jetty-util:" + JETTY_VERSION,
David Ostrovsky3dda8992023-04-28 18:30:07 +0200313 sha1 = "29008dbc6dfac553d209f54193b505d73c253a41",
Han-Wen Nienhuys4bc6c802016-04-01 20:27:52 +0200314)
David Pursehouse28726042019-06-27 09:09:30 +0900315
David Ostrovsky3dda8992023-04-28 18:30:07 +0200316OW2_VERS = "9.2"
David Pursehouse28726042019-06-27 09:09:30 +0900317
318maven_jar(
319 name = "ow2-asm",
320 artifact = "org.ow2.asm:asm:" + OW2_VERS,
David Ostrovsky3dda8992023-04-28 18:30:07 +0200321 sha1 = "81a03f76019c67362299c40e0ba13405f5467bff",
David Pursehouse28726042019-06-27 09:09:30 +0900322)
323
324maven_jar(
325 name = "ow2-asm-analysis",
326 artifact = "org.ow2.asm:asm-analysis:" + OW2_VERS,
David Ostrovsky3dda8992023-04-28 18:30:07 +0200327 sha1 = "7487dd756daf96cab9986e44b9d7bcb796a61c10",
David Pursehouse28726042019-06-27 09:09:30 +0900328)
329
330maven_jar(
331 name = "ow2-asm-commons",
332 artifact = "org.ow2.asm:asm-commons:" + OW2_VERS,
David Ostrovsky3dda8992023-04-28 18:30:07 +0200333 sha1 = "f4d7f0fc9054386f2893b602454d48e07d4fbead",
David Pursehouse28726042019-06-27 09:09:30 +0900334)
335
336maven_jar(
337 name = "ow2-asm-tree",
338 artifact = "org.ow2.asm:asm-tree:" + OW2_VERS,
David Ostrovsky3dda8992023-04-28 18:30:07 +0200339 sha1 = "d96c99a30f5e1a19b0e609dbb19a44d8518ac01e",
David Pursehouse28726042019-06-27 09:09:30 +0900340)
341
342maven_jar(
343 name = "ow2-asm-util",
344 artifact = "org.ow2.asm:asm-util:" + OW2_VERS,
David Ostrovsky3dda8992023-04-28 18:30:07 +0200345 sha1 = "fbc178fc5ba3dab50fd7e8a5317b8b647c8e8946",
David Pursehouse28726042019-06-27 09:09:30 +0900346)