From e7419fb6bc3646a80e9ba3de8d3badfa72f81583 Mon Sep 17 00:00:00 2001 From: Andreas Herrmann Date: Wed, 15 Jan 2020 17:35:23 +0100 Subject: [PATCH] Use https to access central.maven.org See https://support.sonatype.com/hc/en-us/articles/360041287334 And use repo.maven.apache.org instead of central.maven.org --- WORKSPACE | 2 +- jmh/jmh.bzl | 2 +- junit/junit.bzl | 2 +- scala/private/macros/scala_repositories.bzl | 2 +- scala_proto/private/scala_proto_default_repositories.bzl | 2 +- scala_proto/scala_proto.bzl | 2 +- specs2/specs2.bzl | 2 +- specs2/specs2_junit.bzl | 2 +- twitter_scrooge/twitter_scrooge.bzl | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 44227568f..1d51e3930 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -157,7 +157,7 @@ java_import_external( name = "org_apache_commons_commons_lang_3_5_without_file", generated_linkable_rule_name = "linkable_org_apache_commons_commons_lang_3_5_without_file", jar_sha256 = "8ac96fc686512d777fca85e144f196cd7cfe0c0aec23127229497d1a38ff651c", - jar_urls = ["http://central.maven.org/maven2/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar"], + jar_urls = ["https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar"], licenses = ["notice"], # Apache 2.0 neverlink = True, ) diff --git a/jmh/jmh.bzl b/jmh/jmh.bzl index 1eb12bbee..d4274de0d 100644 --- a/jmh/jmh.bzl +++ b/jmh/jmh.bzl @@ -4,7 +4,7 @@ load( _scala_maven_import_external = "scala_maven_import_external", ) -def jmh_repositories(maven_servers = ["http://central.maven.org/maven2"]): +def jmh_repositories(maven_servers = ["https://repo.maven.apache.org/maven2"]): _scala_maven_import_external( name = "io_bazel_rules_scala_org_openjdk_jmh_jmh_core", artifact = "org.openjdk.jmh:jmh-core:1.20", diff --git a/junit/junit.bzl b/junit/junit.bzl index ad97ff1fe..4279483ea 100644 --- a/junit/junit.bzl +++ b/junit/junit.bzl @@ -3,7 +3,7 @@ load( _scala_maven_import_external = "scala_maven_import_external", ) -def junit_repositories(maven_servers = ["http://central.maven.org/maven2"]): +def junit_repositories(maven_servers = ["https://repo.maven.apache.org/maven2"]): _scala_maven_import_external( name = "io_bazel_rules_scala_junit_junit", artifact = "junit:junit:4.12", diff --git a/scala/private/macros/scala_repositories.bzl b/scala/private/macros/scala_repositories.bzl index 9266312ab..ff8017f37 100644 --- a/scala/private/macros/scala_repositories.bzl +++ b/scala/private/macros/scala_repositories.bzl @@ -56,7 +56,7 @@ def scala_repositories( _default_scala_version(), _default_scala_version_jar_shas(), ), - maven_servers = ["http://central.maven.org/maven2"], + maven_servers = ["https://repo.maven.apache.org/maven2"], scala_extra_jars = _default_scala_extra_jars()): (scala_version, scala_version_jar_shas) = scala_version_shas major_version = _extract_major_version(scala_version) diff --git a/scala_proto/private/scala_proto_default_repositories.bzl b/scala_proto/private/scala_proto_default_repositories.bzl index 2b95ce959..8a1899345 100644 --- a/scala_proto/private/scala_proto_default_repositories.bzl +++ b/scala_proto/private/scala_proto_default_repositories.bzl @@ -11,7 +11,7 @@ load( def scala_proto_default_repositories( scala_version = _default_scala_version(), - maven_servers = ["http://central.maven.org/maven2"]): + maven_servers = ["https://repo.maven.apache.org/maven2"]): major_version = _extract_major_version(scala_version) scala_jar_shas = { diff --git a/scala_proto/scala_proto.bzl b/scala_proto/scala_proto.bzl index 88a62c26b..4bb8211cf 100644 --- a/scala_proto/scala_proto.bzl +++ b/scala_proto/scala_proto.bzl @@ -29,7 +29,7 @@ def register_default_proto_dependencies(): def scala_proto_repositories( scala_version = _default_scala_version(), - maven_servers = ["http://central.maven.org/maven2"]): + maven_servers = ["https://repo.maven.apache.org/maven2"]): ret = scala_proto_default_repositories(scala_version, maven_servers) register_default_proto_dependencies() return ret diff --git a/specs2/specs2.bzl b/specs2/specs2.bzl index 769a4d5d5..a9385daf7 100644 --- a/specs2/specs2.bzl +++ b/specs2/specs2.bzl @@ -14,7 +14,7 @@ def specs2_version(): def specs2_repositories( scala_version = _default_scala_version(), - maven_servers = ["http://central.maven.org/maven2"]): + maven_servers = ["https://repo.maven.apache.org/maven2"]): major_version = _extract_major_version(scala_version) scala_jar_shas = { diff --git a/specs2/specs2_junit.bzl b/specs2/specs2_junit.bzl index 813f3297c..aa04e25ac 100644 --- a/specs2/specs2_junit.bzl +++ b/specs2/specs2_junit.bzl @@ -18,7 +18,7 @@ load( def specs2_junit_repositories( scala_version = _default_scala_version(), - maven_servers = ["http://central.maven.org/maven2"]): + maven_servers = ["https://repo.maven.apache.org/maven2"]): major_version = _extract_major_version(scala_version) specs2_repositories(scala_version, maven_servers) diff --git a/twitter_scrooge/twitter_scrooge.bzl b/twitter_scrooge/twitter_scrooge.bzl index 79d15738c..4680b3701 100644 --- a/twitter_scrooge/twitter_scrooge.bzl +++ b/twitter_scrooge/twitter_scrooge.bzl @@ -23,7 +23,7 @@ _jar_extension = ".jar" def twitter_scrooge( scala_version = _default_scala_version(), - maven_servers = ["http://central.maven.org/maven2"]): + maven_servers = ["https://repo.maven.apache.org/maven2"]): major_version = _extract_major_version(scala_version) _scala_maven_import_external(