Skip to content

Commit 62e8655

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 4ba9e4c commit 62e8655

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

repositories.bzl

+32-32
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def com_google_android_annotations():
179179
jvm_maven_import_external(
180180
name = "com_google_android_annotations",
181181
artifact = "com.google.android:annotations:4.1.1.4",
182-
server_urls = ["http://central.maven.org/maven2"],
182+
server_urls = ["https://repo.maven.apache.org/maven2/"],
183183
artifact_sha256 = "ba734e1e84c09d615af6a09d33034b4f0442f8772dec120efb376d86a565ae15",
184184
licenses = ["notice"], # Apache 2.0
185185
)
@@ -188,7 +188,7 @@ def com_google_api_grpc_google_common_protos():
188188
jvm_maven_import_external(
189189
name = "com_google_api_grpc_proto_google_common_protos",
190190
artifact = "com.google.api.grpc:proto-google-common-protos:1.12.0",
191-
server_urls = ["http://central.maven.org/maven2"],
191+
server_urls = ["https://repo.maven.apache.org/maven2/"],
192192
artifact_sha256 = "bd60cd7a423b00fb824c27bdd0293aaf4781be1daba6ed256311103fb4b84108",
193193
licenses = ["notice"], # Apache 2.0
194194
)
@@ -197,7 +197,7 @@ def com_google_auth_google_auth_library_credentials():
197197
jvm_maven_import_external(
198198
name = "com_google_auth_google_auth_library_credentials",
199199
artifact = "com.google.auth:google-auth-library-credentials:0.9.0",
200-
server_urls = ["http://central.maven.org/maven2"],
200+
server_urls = ["https://repo.maven.apache.org/maven2/"],
201201
artifact_sha256 = "ac9efdd6a930e4df906fa278576fa825d979f74315f2faf5c91fe7e6aabb2788",
202202
licenses = ["notice"], # BSD 3-clause
203203
)
@@ -206,7 +206,7 @@ def com_google_auth_google_auth_library_oauth2_http():
206206
jvm_maven_import_external(
207207
name = "com_google_auth_google_auth_library_oauth2_http",
208208
artifact = "com.google.auth:google-auth-library-oauth2-http:0.9.0",
209-
server_urls = ["http://central.maven.org/maven2"],
209+
server_urls = ["https://repo.maven.apache.org/maven2/"],
210210
artifact_sha256 = "e55d9722102cc1245c8c43d69acd49d3c9bbfcc1bcf722e971425506b970097e",
211211
licenses = ["notice"], # BSD 3-clause
212212
)
@@ -215,7 +215,7 @@ def com_google_code_findbugs_jsr305():
215215
jvm_maven_import_external(
216216
name = "com_google_code_findbugs_jsr305",
217217
artifact = "com.google.code.findbugs:jsr305:3.0.2",
218-
server_urls = ["http://central.maven.org/maven2"],
218+
server_urls = ["https://repo.maven.apache.org/maven2/"],
219219
artifact_sha256 = "766ad2a0783f2687962c8ad74ceecc38a28b9f72a2d085ee438b7813e928d0c7",
220220
licenses = ["notice"], # Apache 2.0
221221
)
@@ -224,7 +224,7 @@ def com_google_code_gson():
224224
jvm_maven_import_external(
225225
name = "com_google_code_gson_gson",
226226
artifact = "com.google.code.gson:gson:jar:2.7",
227-
server_urls = ["http://central.maven.org/maven2"],
227+
server_urls = ["https://repo.maven.apache.org/maven2/"],
228228
artifact_sha256 = "2d43eb5ea9e133d2ee2405cc14f5ee08951b8361302fdd93494a3a997b508d32",
229229
licenses = ["notice"], # Apache 2.0
230230
)
@@ -233,7 +233,7 @@ def com_google_errorprone_error_prone_annotations():
233233
jvm_maven_import_external(
234234
name = "com_google_errorprone_error_prone_annotations",
235235
artifact = "com.google.errorprone:error_prone_annotations:2.3.3",
236-
server_urls = ["http://central.maven.org/maven2"],
236+
server_urls = ["https://repo.maven.apache.org/maven2/"],
237237
artifact_sha256 = "ec59f1b702d9afc09e8c3929f5c42777dec623a6ea2731ac694332c7d7680f5a",
238238
licenses = ["notice"], # Apache 2.0
239239
)
@@ -242,7 +242,7 @@ def com_google_guava():
242242
jvm_maven_import_external(
243243
name = "com_google_guava_guava",
244244
artifact = "com.google.guava:guava:26.0-android",
245-
server_urls = ["http://central.maven.org/maven2"],
245+
server_urls = ["https://repo.maven.apache.org/maven2/"],
246246
artifact_sha256 = "1d044ebb866ef08b7d04e998b4260c9b52fab6e6d6b68d207859486bb3686cd5",
247247
licenses = ["notice"], # Apache 2.0
248248
)
@@ -252,7 +252,7 @@ def com_google_guava_failureaccess():
252252
jvm_maven_import_external(
253253
name = "com_google_guava_failureaccess",
254254
artifact = "com.google.guava:failureaccess:1.0.1",
255-
server_urls = ["http://central.maven.org/maven2"],
255+
server_urls = ["https://repo.maven.apache.org/maven2/"],
256256
artifact_sha256 = "a171ee4c734dd2da837e4b16be9df4661afab72a41adaf31eb84dfdaf936ca26",
257257
licenses = ["notice"], # Apache 2.0
258258
)
@@ -261,7 +261,7 @@ def com_google_j2objc_j2objc_annotations():
261261
jvm_maven_import_external(
262262
name = "com_google_j2objc_j2objc_annotations",
263263
artifact = "com.google.j2objc:j2objc-annotations:1.1",
264-
server_urls = ["http://central.maven.org/maven2"],
264+
server_urls = ["https://repo.maven.apache.org/maven2/"],
265265
artifact_sha256 = "2994a7eb78f2710bd3d3bfb639b2c94e219cedac0d4d084d516e78c16dddecf6",
266266
licenses = ["notice"], # Apache 2.0
267267
)
@@ -290,7 +290,7 @@ def com_google_truth_truth():
290290
jvm_maven_import_external(
291291
name = "com_google_truth_truth",
292292
artifact = "com.google.truth:truth:0.45",
293-
server_urls = ["http://central.maven.org/maven2"],
293+
server_urls = ["https://repo.maven.apache.org/maven2/"],
294294
artifact_sha256 = "0f7dced2a16e55a77e44fc3ff9c5be98d4bf4bb30abc18d78ffd735df950a69f",
295295
licenses = ["notice"], # Apache 2.0
296296
)
@@ -299,7 +299,7 @@ def com_squareup_okhttp():
299299
jvm_maven_import_external(
300300
name = "com_squareup_okhttp_okhttp",
301301
artifact = "com.squareup.okhttp:okhttp:2.5.0",
302-
server_urls = ["http://central.maven.org/maven2"],
302+
server_urls = ["https://repo.maven.apache.org/maven2/"],
303303
artifact_sha256 = "1cc716e29539adcda677949508162796daffedb4794cbf947a6f65e696f0381c",
304304
licenses = ["notice"], # Apache 2.0
305305
)
@@ -308,7 +308,7 @@ def com_squareup_okio():
308308
jvm_maven_import_external(
309309
name = "com_squareup_okio_okio",
310310
artifact = "com.squareup.okio:okio:1.13.0",
311-
server_urls = ["http://central.maven.org/maven2"],
311+
server_urls = ["https://repo.maven.apache.org/maven2/"],
312312
artifact_sha256 = "734269c3ebc5090e3b23566db558f421f0b4027277c79ad5d176b8ec168bb850",
313313
licenses = ["notice"], # Apache 2.0
314314
)
@@ -325,7 +325,7 @@ def io_netty_buffer():
325325
jvm_maven_import_external(
326326
name = "io_netty_netty_buffer",
327327
artifact = "io.netty:netty-buffer:4.1.38.Final",
328-
server_urls = ["http://central.maven.org/maven2"],
328+
server_urls = ["https://repo.maven.apache.org/maven2/"],
329329
artifact_sha256 = "a3dcb49108f83b195e66cdad70b2d4a127c17f1be7f5b228a88ce18908c30b3e",
330330
licenses = ["notice"], # Apache 2.0
331331
)
@@ -334,7 +334,7 @@ def io_netty_codec():
334334
jvm_maven_import_external(
335335
name = "io_netty_netty_codec",
336336
artifact = "io.netty:netty-codec:4.1.38.Final",
337-
server_urls = ["http://central.maven.org/maven2"],
337+
server_urls = ["https://repo.maven.apache.org/maven2/"],
338338
artifact_sha256 = "8a4cb96e2131eeb8a824014f0ee338b11c6041405446acf73181199ed05744ac",
339339
licenses = ["notice"], # Apache 2.0
340340
)
@@ -343,7 +343,7 @@ def io_netty_codec_http():
343343
jvm_maven_import_external(
344344
name = "io_netty_netty_codec_http",
345345
artifact = "io.netty:netty-codec-http:4.1.38.Final",
346-
server_urls = ["http://central.maven.org/maven2"],
346+
server_urls = ["https://repo.maven.apache.org/maven2/"],
347347
artifact_sha256 = "b35c4ac78ed3aaefeb782965ce9f22901e5302bf5e75b75fbed79434ce007e8c",
348348
licenses = ["notice"], # Apache 2.0
349349
)
@@ -352,7 +352,7 @@ def io_netty_codec_http2():
352352
jvm_maven_import_external(
353353
name = "io_netty_netty_codec_http2",
354354
artifact = "io.netty:netty-codec-http2:4.1.38.Final",
355-
server_urls = ["http://central.maven.org/maven2"],
355+
server_urls = ["https://repo.maven.apache.org/maven2/"],
356356
artifact_sha256 = "7e2d792407d2da34d3338a3e8f8ed421570fdbf845941b8ee0aa952fe0e07026",
357357
licenses = ["notice"], # Apache 2.0
358358
)
@@ -361,7 +361,7 @@ def io_netty_codec_socks():
361361
jvm_maven_import_external(
362362
name = "io_netty_netty_codec_socks",
363363
artifact = "io.netty:netty-codec-socks:4.1.38.Final",
364-
server_urls = ["http://central.maven.org/maven2"],
364+
server_urls = ["https://repo.maven.apache.org/maven2/"],
365365
artifact_sha256 = "16d932d76d06992923ce640609d297fe35d9f7b219ea5f0514a4259f1f1f2146",
366366
licenses = ["notice"], # Apache 2.0
367367
)
@@ -370,7 +370,7 @@ def io_netty_common():
370370
jvm_maven_import_external(
371371
name = "io_netty_netty_common",
372372
artifact = "io.netty:netty-common:4.1.38.Final",
373-
server_urls = ["http://central.maven.org/maven2"],
373+
server_urls = ["https://repo.maven.apache.org/maven2/"],
374374
artifact_sha256 = "710df7c27fe5ba4b15689ae10668cd10ab3b618a1291f3a47b2cc292a0fa67da",
375375
licenses = ["notice"], # Apache 2.0
376376
)
@@ -379,7 +379,7 @@ def io_netty_handler():
379379
jvm_maven_import_external(
380380
name = "io_netty_netty_handler",
381381
artifact = "io.netty:netty-handler:4.1.38.Final",
382-
server_urls = ["http://central.maven.org/maven2"],
382+
server_urls = ["https://repo.maven.apache.org/maven2/"],
383383
artifact_sha256 = "b49b57dbdc88a2c77e3ea9b9d00d3136f28771e059b74a7be7458d7a86bfccd1",
384384
licenses = ["notice"], # Apache 2.0
385385
)
@@ -388,7 +388,7 @@ def io_netty_handler_proxy():
388388
jvm_maven_import_external(
389389
name = "io_netty_netty_handler_proxy",
390390
artifact = "io.netty:netty-handler-proxy:4.1.38.Final",
391-
server_urls = ["http://central.maven.org/maven2"],
391+
server_urls = ["https://repo.maven.apache.org/maven2/"],
392392
artifact_sha256 = "9dab309a0422dd9858f431d503b58b854b37d2545c50ad7b4771f34d2288e5c0",
393393
licenses = ["notice"], # Apache 2.0
394394
)
@@ -397,7 +397,7 @@ def io_netty_resolver():
397397
jvm_maven_import_external(
398398
name = "io_netty_netty_resolver",
399399
artifact = "io.netty:netty-resolver:4.1.38.Final",
400-
server_urls = ["http://central.maven.org/maven2"],
400+
server_urls = ["https://repo.maven.apache.org/maven2/"],
401401
artifact_sha256 = "3692c12a0035e566d5cd1dc1529d4f61725304c5e88817ae78b5c2f7f6d86cad",
402402
licenses = ["notice"], # Apache 2.0
403403
)
@@ -406,7 +406,7 @@ def io_netty_tcnative_boringssl_static():
406406
jvm_maven_import_external(
407407
name = "io_netty_netty_tcnative_boringssl_static",
408408
artifact = "io.netty:netty-tcnative-boringssl-static:2.0.25.Final",
409-
server_urls = ["http://central.maven.org/maven2"],
409+
server_urls = ["https://repo.maven.apache.org/maven2/"],
410410
artifact_sha256 = "96d9c14ab4c47cbad7fec9bdb083917db971d3754d6c7fa89f958bc719e230ed",
411411
licenses = ["notice"], # Apache 2.0
412412
)
@@ -415,7 +415,7 @@ def io_netty_transport():
415415
jvm_maven_import_external(
416416
name = "io_netty_netty_transport",
417417
artifact = "io.netty:netty-transport:4.1.38.Final",
418-
server_urls = ["http://central.maven.org/maven2"],
418+
server_urls = ["https://repo.maven.apache.org/maven2/"],
419419
artifact_sha256 = "5f826976585a49aae9b495290125a60a59dc6887fbe4c70da3182a83fb8bfa88",
420420
licenses = ["notice"], # Apache 2.0
421421
)
@@ -424,7 +424,7 @@ def io_netty_transport_native_epoll():
424424
jvm_maven_import_external(
425425
name = "io_netty_netty_transport_native_epoll",
426426
artifact = "io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.38.Final",
427-
server_urls = ["http://central.maven.org/maven2"],
427+
server_urls = ["https://repo.maven.apache.org/maven2/"],
428428
artifact_sha256 = "7933467e1cfc37bc6fb3f22af471ed69cb66bebaceab73d2041772bb6a38218a",
429429
licenses = ["notice"], # Apache 2.0
430430
)
@@ -433,7 +433,7 @@ def io_opencensus_api():
433433
jvm_maven_import_external(
434434
name = "io_opencensus_opencensus_api",
435435
artifact = "io.opencensus:opencensus-api:0.21.0",
436-
server_urls = ["http://central.maven.org/maven2"],
436+
server_urls = ["https://repo.maven.apache.org/maven2/"],
437437
artifact_sha256 = "8e2cb0f6391d8eb0a1bcd01e7748883f0033b1941754f4ed3f19d2c3e4276fc8",
438438
licenses = ["notice"], # Apache 2.0
439439
)
@@ -442,7 +442,7 @@ def io_opencensus_grpc_metrics():
442442
jvm_maven_import_external(
443443
name = "io_opencensus_opencensus_contrib_grpc_metrics",
444444
artifact = "io.opencensus:opencensus-contrib-grpc-metrics:0.21.0",
445-
server_urls = ["http://central.maven.org/maven2"],
445+
server_urls = ["https://repo.maven.apache.org/maven2/"],
446446
artifact_sha256 = "29fc79401082301542cab89d7054d2f0825f184492654c950020553ef4ff0ef8",
447447
licenses = ["notice"], # Apache 2.0
448448
)
@@ -451,7 +451,7 @@ def io_perfmark():
451451
jvm_maven_import_external(
452452
name = "io_perfmark_perfmark_api",
453453
artifact = "io.perfmark:perfmark-api:0.19.0",
454-
server_urls = ["http://central.maven.org/maven2"],
454+
server_urls = ["https://repo.maven.apache.org/maven2/"],
455455
artifact_sha256 = "b734ba2149712409a44eabdb799f64768578fee0defe1418bb108fe32ea43e1a",
456456
licenses = ["notice"], # Apache 2.0
457457
)
@@ -461,7 +461,7 @@ def javax_annotation():
461461
jvm_maven_import_external(
462462
name = "javax_annotation_javax_annotation_api",
463463
artifact = "javax.annotation:javax.annotation-api:1.2",
464-
server_urls = ["http://central.maven.org/maven2"],
464+
server_urls = ["https://repo.maven.apache.org/maven2/"],
465465
artifact_sha256 = "5909b396ca3a2be10d0eea32c74ef78d816e1b4ead21de1d78de1f890d033e04",
466466
licenses = ["reciprocal"], # CDDL License
467467
)
@@ -470,7 +470,7 @@ def junit_junit():
470470
jvm_maven_import_external(
471471
name = "junit_junit",
472472
artifact = "junit:junit:4.12",
473-
server_urls = ["http://central.maven.org/maven2"],
473+
server_urls = ["https://repo.maven.apache.org/maven2/"],
474474
artifact_sha256 = "59721f0805e223d84b90677887d9ff567dc534d7c502ca903c0c2b17f05c116a",
475475
licenses = ["notice"], # EPL 1.0
476476
)
@@ -488,7 +488,7 @@ def org_apache_commons_lang3():
488488
jvm_maven_import_external(
489489
name = "org_apache_commons_commons_lang3",
490490
artifact = "org.apache.commons:commons-lang3:3.5",
491-
server_urls = ["http://central.maven.org/maven2"],
491+
server_urls = ["https://repo.maven.apache.org/maven2/"],
492492
artifact_sha256 = "8ac96fc686512d777fca85e144f196cd7cfe0c0aec23127229497d1a38ff651c",
493493
licenses = ["notice"], # Apache 2.0
494494
)
@@ -497,7 +497,7 @@ def org_codehaus_mojo_animal_sniffer_annotations():
497497
jvm_maven_import_external(
498498
name = "org_codehaus_mojo_animal_sniffer_annotations",
499499
artifact = "org.codehaus.mojo:animal-sniffer-annotations:1.17",
500-
server_urls = ["http://central.maven.org/maven2"],
500+
server_urls = ["https://repo.maven.apache.org/maven2/"],
501501
artifact_sha256 = "92654f493ecfec52082e76354f0ebf87648dc3d5cec2e3c3cdb947c016747a53",
502502
licenses = ["notice"], # MIT
503503
)

0 commit comments

Comments
 (0)