Skip to content

Commit b6f5233

Browse files
committed
bazel: Use https to download from Maven Central
central.maven.org shouldn't have been used in the first place as it isn't one of the canonical URLs to Maven Central, but even more importantly we want to use https. The previous URL will probably stop working January 15, 2020[1][2]. Fixes #6536 1. https://central.sonatype.org/articles/2019/Apr/30/http-access-to-repo1mavenorg-and-repomavenapacheorg-is-being-deprecated/ 2. https://central.sonatype.org/articles/2019/Nov/15/non-canonical-urls-will-be-redirected-today/
1 parent f0be78f commit b6f5233

1 file changed

Lines changed: 32 additions & 32 deletions

File tree

repositories.bzl

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def com_google_android_annotations():
165165
jvm_maven_import_external(
166166
name = "com_google_android_annotations",
167167
artifact = "com.google.android:annotations:4.1.1.4",
168-
server_urls = ["http://central.maven.org/maven2"],
168+
server_urls = ["https://repo.maven.apache.org/maven2/"],
169169
artifact_sha256 = "ba734e1e84c09d615af6a09d33034b4f0442f8772dec120efb376d86a565ae15",
170170
licenses = ["notice"], # Apache 2.0
171171
)
@@ -174,7 +174,7 @@ def com_google_api_grpc_google_common_protos():
174174
jvm_maven_import_external(
175175
name = "com_google_api_grpc_proto_google_common_protos",
176176
artifact = "com.google.api.grpc:proto-google-common-protos:1.12.0",
177-
server_urls = ["http://central.maven.org/maven2"],
177+
server_urls = ["https://repo.maven.apache.org/maven2/"],
178178
artifact_sha256 = "bd60cd7a423b00fb824c27bdd0293aaf4781be1daba6ed256311103fb4b84108",
179179
licenses = ["notice"], # Apache 2.0
180180
)
@@ -183,7 +183,7 @@ def com_google_auth_google_auth_library_credentials():
183183
jvm_maven_import_external(
184184
name = "com_google_auth_google_auth_library_credentials",
185185
artifact = "com.google.auth:google-auth-library-credentials:0.18.0",
186-
server_urls = ["http://central.maven.org/maven2"],
186+
server_urls = ["https://repo.maven.apache.org/maven2/"],
187187
artifact_sha256 = "2377b149dbf63f000f96b66f5dc0f07b9da3928f5e3f31973f2d21fcb63ce6ff",
188188
licenses = ["notice"], # BSD 3-clause
189189
)
@@ -192,7 +192,7 @@ def com_google_auth_google_auth_library_oauth2_http():
192192
jvm_maven_import_external(
193193
name = "com_google_auth_google_auth_library_oauth2_http",
194194
artifact = "com.google.auth:google-auth-library-oauth2-http:0.18.0",
195-
server_urls = ["http://central.maven.org/maven2"],
195+
server_urls = ["https://repo.maven.apache.org/maven2/"],
196196
artifact_sha256 = "2f13eff0105debe54a91851684b78dd5a0f3839fae5acaa8ba7959c004c050d0",
197197
licenses = ["notice"], # BSD 3-clause
198198
)
@@ -201,7 +201,7 @@ def com_google_code_findbugs_jsr305():
201201
jvm_maven_import_external(
202202
name = "com_google_code_findbugs_jsr305",
203203
artifact = "com.google.code.findbugs:jsr305:3.0.2",
204-
server_urls = ["http://central.maven.org/maven2"],
204+
server_urls = ["https://repo.maven.apache.org/maven2/"],
205205
artifact_sha256 = "766ad2a0783f2687962c8ad74ceecc38a28b9f72a2d085ee438b7813e928d0c7",
206206
licenses = ["notice"], # Apache 2.0
207207
)
@@ -210,7 +210,7 @@ def com_google_code_gson():
210210
jvm_maven_import_external(
211211
name = "com_google_code_gson_gson",
212212
artifact = "com.google.code.gson:gson:jar:2.8.6",
213-
server_urls = ["http://central.maven.org/maven2"],
213+
server_urls = ["https://repo.maven.apache.org/maven2/"],
214214
artifact_sha256 = "c8fb4839054d280b3033f800d1f5a97de2f028eb8ba2eb458ad287e536f3f25f",
215215
licenses = ["notice"], # Apache 2.0
216216
)
@@ -219,7 +219,7 @@ def com_google_errorprone_error_prone_annotations():
219219
jvm_maven_import_external(
220220
name = "com_google_errorprone_error_prone_annotations",
221221
artifact = "com.google.errorprone:error_prone_annotations:2.3.3",
222-
server_urls = ["http://central.maven.org/maven2"],
222+
server_urls = ["https://repo.maven.apache.org/maven2/"],
223223
artifact_sha256 = "ec59f1b702d9afc09e8c3929f5c42777dec623a6ea2731ac694332c7d7680f5a",
224224
licenses = ["notice"], # Apache 2.0
225225
)
@@ -228,7 +228,7 @@ def com_google_guava():
228228
jvm_maven_import_external(
229229
name = "com_google_guava_guava",
230230
artifact = "com.google.guava:guava:28.1-android",
231-
server_urls = ["http://central.maven.org/maven2"],
231+
server_urls = ["https://repo.maven.apache.org/maven2/"],
232232
artifact_sha256 = "e112ce92c0f0733965eede73d94589c59a72128b06b08bba5ebe2f9ea672ef60",
233233
licenses = ["notice"], # Apache 2.0
234234
)
@@ -238,7 +238,7 @@ def com_google_guava_failureaccess():
238238
jvm_maven_import_external(
239239
name = "com_google_guava_failureaccess",
240240
artifact = "com.google.guava:failureaccess:1.0.1",
241-
server_urls = ["http://central.maven.org/maven2"],
241+
server_urls = ["https://repo.maven.apache.org/maven2/"],
242242
artifact_sha256 = "a171ee4c734dd2da837e4b16be9df4661afab72a41adaf31eb84dfdaf936ca26",
243243
licenses = ["notice"], # Apache 2.0
244244
)
@@ -247,7 +247,7 @@ def com_google_j2objc_j2objc_annotations():
247247
jvm_maven_import_external(
248248
name = "com_google_j2objc_j2objc_annotations",
249249
artifact = "com.google.j2objc:j2objc-annotations:1.3",
250-
server_urls = ["http://central.maven.org/maven2"],
250+
server_urls = ["https://repo.maven.apache.org/maven2/"],
251251
artifact_sha256 = "21af30c92267bd6122c0e0b4d20cccb6641a37eaf956c6540ec471d584e64a7b",
252252
licenses = ["notice"], # Apache 2.0
253253
)
@@ -276,7 +276,7 @@ def com_google_truth_truth():
276276
jvm_maven_import_external(
277277
name = "com_google_truth_truth",
278278
artifact = "com.google.truth:truth:1.0",
279-
server_urls = ["http://central.maven.org/maven2"],
279+
server_urls = ["https://repo.maven.apache.org/maven2/"],
280280
artifact_sha256 = "edaa12f3b581fcf1c07311e94af8766919c4f3d904b00d3503147b99bf5b4004",
281281
licenses = ["notice"], # Apache 2.0
282282
)
@@ -285,7 +285,7 @@ def com_squareup_okhttp():
285285
jvm_maven_import_external(
286286
name = "com_squareup_okhttp_okhttp",
287287
artifact = "com.squareup.okhttp:okhttp:2.5.0",
288-
server_urls = ["http://central.maven.org/maven2"],
288+
server_urls = ["https://repo.maven.apache.org/maven2/"],
289289
artifact_sha256 = "1cc716e29539adcda677949508162796daffedb4794cbf947a6f65e696f0381c",
290290
licenses = ["notice"], # Apache 2.0
291291
)
@@ -294,7 +294,7 @@ def com_squareup_okio():
294294
jvm_maven_import_external(
295295
name = "com_squareup_okio_okio",
296296
artifact = "com.squareup.okio:okio:1.13.0",
297-
server_urls = ["http://central.maven.org/maven2"],
297+
server_urls = ["https://repo.maven.apache.org/maven2/"],
298298
artifact_sha256 = "734269c3ebc5090e3b23566db558f421f0b4027277c79ad5d176b8ec168bb850",
299299
licenses = ["notice"], # Apache 2.0
300300
)
@@ -311,7 +311,7 @@ def io_netty_buffer():
311311
jvm_maven_import_external(
312312
name = "io_netty_netty_buffer",
313313
artifact = "io.netty:netty-buffer:4.1.42.Final",
314-
server_urls = ["http://central.maven.org/maven2"],
314+
server_urls = ["https://repo.maven.apache.org/maven2/"],
315315
artifact_sha256 = "7b0171a4e8bcd573e08d9f2bba053c67b557ab5012106a5982ccbae5743814c0",
316316
licenses = ["notice"], # Apache 2.0
317317
)
@@ -320,7 +320,7 @@ def io_netty_codec():
320320
jvm_maven_import_external(
321321
name = "io_netty_netty_codec",
322322
artifact = "io.netty:netty-codec:4.1.42.Final",
323-
server_urls = ["http://central.maven.org/maven2"],
323+
server_urls = ["https://repo.maven.apache.org/maven2/"],
324324
artifact_sha256 = "e96ced697fb7df589da7c20c995e01f75a9cb246be242bbc4cd3b4af424ff189",
325325
licenses = ["notice"], # Apache 2.0
326326
)
@@ -329,7 +329,7 @@ def io_netty_codec_http():
329329
jvm_maven_import_external(
330330
name = "io_netty_netty_codec_http",
331331
artifact = "io.netty:netty-codec-http:4.1.42.Final",
332-
server_urls = ["http://central.maven.org/maven2"],
332+
server_urls = ["https://repo.maven.apache.org/maven2/"],
333333
artifact_sha256 = "eb349c0f1b249af7c7a8fbbd1c761d65d9bc230880cd8d37feab9e8278292625",
334334
licenses = ["notice"], # Apache 2.0
335335
)
@@ -338,7 +338,7 @@ def io_netty_codec_http2():
338338
jvm_maven_import_external(
339339
name = "io_netty_netty_codec_http2",
340340
artifact = "io.netty:netty-codec-http2:4.1.42.Final",
341-
server_urls = ["http://central.maven.org/maven2"],
341+
server_urls = ["https://repo.maven.apache.org/maven2/"],
342342
artifact_sha256 = "8bac9625eb68635396eb0c13c9cc0b22bde7c83d0cd2dae3fe9b6f9cf929e372",
343343
licenses = ["notice"], # Apache 2.0
344344
)
@@ -347,7 +347,7 @@ def io_netty_codec_socks():
347347
jvm_maven_import_external(
348348
name = "io_netty_netty_codec_socks",
349349
artifact = "io.netty:netty-codec-socks:4.1.42.Final",
350-
server_urls = ["http://central.maven.org/maven2"],
350+
server_urls = ["https://repo.maven.apache.org/maven2/"],
351351
artifact_sha256 = "7f14b3a95ee9aa5a26f66af668690578a81a883683ac1c4ca9e9afdf4d4c7894",
352352
licenses = ["notice"], # Apache 2.0
353353
)
@@ -356,7 +356,7 @@ def io_netty_common():
356356
jvm_maven_import_external(
357357
name = "io_netty_netty_common",
358358
artifact = "io.netty:netty-common:4.1.42.Final",
359-
server_urls = ["http://central.maven.org/maven2"],
359+
server_urls = ["https://repo.maven.apache.org/maven2/"],
360360
artifact_sha256 = "3d0a918d78292eeca02a7bb2188daa4e5053b6e29b71e6308309033e121242b5",
361361
licenses = ["notice"], # Apache 2.0
362362
)
@@ -365,7 +365,7 @@ def io_netty_handler():
365365
jvm_maven_import_external(
366366
name = "io_netty_netty_handler",
367367
artifact = "io.netty:netty-handler:4.1.42.Final",
368-
server_urls = ["http://central.maven.org/maven2"],
368+
server_urls = ["https://repo.maven.apache.org/maven2/"],
369369
artifact_sha256 = "11eda86500c33b9d386719b5419f513fd9c097d13894f25dd0c75b610d636e03",
370370
licenses = ["notice"], # Apache 2.0
371371
)
@@ -374,7 +374,7 @@ def io_netty_handler_proxy():
374374
jvm_maven_import_external(
375375
name = "io_netty_netty_handler_proxy",
376376
artifact = "io.netty:netty-handler-proxy:4.1.42.Final",
377-
server_urls = ["http://central.maven.org/maven2"],
377+
server_urls = ["https://repo.maven.apache.org/maven2/"],
378378
artifact_sha256 = "25f22da21c29ab0d3b6b889412351bcfc5f9ccd42e07d2d5513d5c4eb571f343",
379379
licenses = ["notice"], # Apache 2.0
380380
)
@@ -383,7 +383,7 @@ def io_netty_resolver():
383383
jvm_maven_import_external(
384384
name = "io_netty_netty_resolver",
385385
artifact = "io.netty:netty-resolver:4.1.42.Final",
386-
server_urls = ["http://central.maven.org/maven2"],
386+
server_urls = ["https://repo.maven.apache.org/maven2/"],
387387
artifact_sha256 = "89768242b6b7cce9bd9f5945ad21d1b4bae515c6b1bf03a8af5d1899779cebc9",
388388
licenses = ["notice"], # Apache 2.0
389389
)
@@ -392,7 +392,7 @@ def io_netty_tcnative_boringssl_static():
392392
jvm_maven_import_external(
393393
name = "io_netty_netty_tcnative_boringssl_static",
394394
artifact = "io.netty:netty-tcnative-boringssl-static:2.0.26.Final",
395-
server_urls = ["http://central.maven.org/maven2"],
395+
server_urls = ["https://repo.maven.apache.org/maven2/"],
396396
artifact_sha256 = "5f074a4b112bf7d087331e33d2da720745c5bda047b34b64bd70aaaae4de24c6",
397397
licenses = ["notice"], # Apache 2.0
398398
)
@@ -401,7 +401,7 @@ def io_netty_transport():
401401
jvm_maven_import_external(
402402
name = "io_netty_netty_transport",
403403
artifact = "io.netty:netty-transport:4.1.42.Final",
404-
server_urls = ["http://central.maven.org/maven2"],
404+
server_urls = ["https://repo.maven.apache.org/maven2/"],
405405
artifact_sha256 = "dfa817a156ea263aa9ad8364a2e226527665c9722aca40a7945f228c2c14f1da",
406406
licenses = ["notice"], # Apache 2.0
407407
)
@@ -410,7 +410,7 @@ def io_netty_transport_native_epoll():
410410
jvm_maven_import_external(
411411
name = "io_netty_netty_transport_native_epoll",
412412
artifact = "io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.42.Final",
413-
server_urls = ["http://central.maven.org/maven2"],
413+
server_urls = ["https://repo.maven.apache.org/maven2/"],
414414
artifact_sha256 = "7bdf3003d5b60b061b494e62d1bafc420caf800efb743b14ec01ceaef1d3fa3e",
415415
licenses = ["notice"], # Apache 2.0
416416
)
@@ -419,7 +419,7 @@ def io_opencensus_api():
419419
jvm_maven_import_external(
420420
name = "io_opencensus_opencensus_api",
421421
artifact = "io.opencensus:opencensus-api:0.24.0",
422-
server_urls = ["http://central.maven.org/maven2"],
422+
server_urls = ["https://repo.maven.apache.org/maven2/"],
423423
artifact_sha256 = "f561b1cc2673844288e596ddf5bb6596868a8472fd2cb8993953fc5c034b2352",
424424
licenses = ["notice"], # Apache 2.0
425425
)
@@ -428,7 +428,7 @@ def io_opencensus_grpc_metrics():
428428
jvm_maven_import_external(
429429
name = "io_opencensus_opencensus_contrib_grpc_metrics",
430430
artifact = "io.opencensus:opencensus-contrib-grpc-metrics:0.24.0",
431-
server_urls = ["http://central.maven.org/maven2"],
431+
server_urls = ["https://repo.maven.apache.org/maven2/"],
432432
artifact_sha256 = "875582e093f11950ad3f4a50b5fee33a008023f7d1e47820a1bef05d23b9ed42",
433433
licenses = ["notice"], # Apache 2.0
434434
)
@@ -437,7 +437,7 @@ def io_perfmark():
437437
jvm_maven_import_external(
438438
name = "io_perfmark_perfmark_api",
439439
artifact = "io.perfmark:perfmark-api:0.19.0",
440-
server_urls = ["http://central.maven.org/maven2"],
440+
server_urls = ["https://repo.maven.apache.org/maven2/"],
441441
artifact_sha256 = "b734ba2149712409a44eabdb799f64768578fee0defe1418bb108fe32ea43e1a",
442442
licenses = ["notice"], # Apache 2.0
443443
)
@@ -447,7 +447,7 @@ def javax_annotation():
447447
jvm_maven_import_external(
448448
name = "javax_annotation_javax_annotation_api",
449449
artifact = "javax.annotation:javax.annotation-api:1.2",
450-
server_urls = ["http://central.maven.org/maven2"],
450+
server_urls = ["https://repo.maven.apache.org/maven2/"],
451451
artifact_sha256 = "5909b396ca3a2be10d0eea32c74ef78d816e1b4ead21de1d78de1f890d033e04",
452452
licenses = ["reciprocal"], # CDDL License
453453
)
@@ -456,7 +456,7 @@ def junit_junit():
456456
jvm_maven_import_external(
457457
name = "junit_junit",
458458
artifact = "junit:junit:4.12",
459-
server_urls = ["http://central.maven.org/maven2"],
459+
server_urls = ["https://repo.maven.apache.org/maven2/"],
460460
artifact_sha256 = "59721f0805e223d84b90677887d9ff567dc534d7c502ca903c0c2b17f05c116a",
461461
licenses = ["notice"], # EPL 1.0
462462
)
@@ -465,7 +465,7 @@ def org_apache_commons_lang3():
465465
jvm_maven_import_external(
466466
name = "org_apache_commons_commons_lang3",
467467
artifact = "org.apache.commons:commons-lang3:3.5",
468-
server_urls = ["http://central.maven.org/maven2"],
468+
server_urls = ["https://repo.maven.apache.org/maven2/"],
469469
artifact_sha256 = "8ac96fc686512d777fca85e144f196cd7cfe0c0aec23127229497d1a38ff651c",
470470
licenses = ["notice"], # Apache 2.0
471471
)
@@ -474,7 +474,7 @@ def org_codehaus_mojo_animal_sniffer_annotations():
474474
jvm_maven_import_external(
475475
name = "org_codehaus_mojo_animal_sniffer_annotations",
476476
artifact = "org.codehaus.mojo:animal-sniffer-annotations:1.17",
477-
server_urls = ["http://central.maven.org/maven2"],
477+
server_urls = ["https://repo.maven.apache.org/maven2/"],
478478
artifact_sha256 = "92654f493ecfec52082e76354f0ebf87648dc3d5cec2e3c3cdb947c016747a53",
479479
licenses = ["notice"], # MIT
480480
)

0 commit comments

Comments
 (0)