From 69ab63aaad8e0f19371f38f272ee5147b53ceaf0 Mon Sep 17 00:00:00 2001 From: Alberto Cavalcante <54247214+albertocavalcante@users.noreply.github.com> Date: Sat, 28 Sep 2024 14:22:55 -0300 Subject: [PATCH] JCenter / Bintray Sunset: use Maven Central (#26) --- WORKSPACE.bazel | 6 +++--- antlr/repositories.bzl | 5 +---- docs/setup.md | 10 +++++----- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index 525a206..691a112 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -37,19 +37,19 @@ local_repository( http_jar( name = "junit", sha256 = "59721f0805e223d84b90677887d9ff567dc534d7c502ca903c0c2b17f05c116a", - url = "https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.jar", + url = "https://repo1.maven.org/maven2/junit/junit/4.12/junit-4.12.jar", ) http_jar( name = "jimfs", sha256 = "c4828e28d7c0a930af9387510b3bada7daa5c04d7c25a75c7b8b081f1c257ddd", - url = "https://jcenter.bintray.com/com/google/jimfs/jimfs/1.1/jimfs-1.1.jar", + url = "https://repo1.maven.org/maven2/com/google/jimfs/jimfs/1.1/jimfs-1.1.jar", ) http_jar( name = "guava", sha256 = "4a5aa70cc968a4d137e599ad37553e5cfeed2265e8c193476d7119036c536fe7", - url = "https://jcenter.bintray.com/com/google/guava/guava/27.1-jre/guava-27.1-jre.jar", + url = "https://repo1.maven.org/maven2/com/google/guava/guava/27.1-jre/guava-27.1-jre.jar", ) load("//antlr:repositories.bzl", "rules_antlr_dependencies") diff --git a/antlr/repositories.bzl b/antlr/repositories.bzl index e2525ab..a7c2651 100644 --- a/antlr/repositories.bzl +++ b/antlr/repositories.bzl @@ -516,10 +516,7 @@ def _dependencies(dependencies): def _download(name, path, sha256): http_jar( name = name, - urls = [ - path if path.startswith("https") else "https://jcenter.bintray.com/" + path, - path if path.startswith("https") else "https://repo1.maven.org/maven2/" + path, - ], + url = path if path.startswith("https") else "https://repo1.maven.org/maven2/" + path, sha256 = sha256, ) diff --git a/docs/setup.md b/docs/setup.md index a99ea54..a6e6aaf 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -84,27 +84,27 @@ the necessary dependencies yourself. E.g. for ANTLR 4.7: ```python http_jar( name = "antlr4_runtime", - url = "https://jcenter.bintray.com/org/antlr/antlr4-runtime/4.7/antlr4-runtime-4.7.jar", + url = "https://repo1.maven.org/maven2/org/antlr/antlr4-runtime/4.7/antlr4-runtime-4.7.jar", sha256 = "2a61943f803bbd1d0e02dffd19b92a418f83340c994346809e3b51e2231aa6c0", ) http_jar( name = "antlr4_tool", - url = "https://jcenter.bintray.com/org/antlr/antlr4/4.7/antlr4-4.7.jar", + url = "https://repo1.maven.org/maven2/org/antlr/antlr4/4.7/antlr4-4.7.jar", sha256 = "7867257028b3373af011dee7b6ce9b587a8fd5c7a0b25f68b2ff4cb90be8aa07", ) http_jar( name = "antlr3_runtime", - url = "https://jcenter.bintray.com/org/antlr/antlr-runtime/3.5.2/antlr-runtime-3.5.2.jar", + url = "https://repo1.maven.org/maven2/org/antlr/antlr-runtime/3.5.2/antlr-runtime-3.5.2.jar", sha256 = "ce3fc8ecb10f39e9a3cddcbb2ce350d272d9cd3d0b1e18e6fe73c3b9389c8734", ) http_jar( name = "stringtemplate4", - url = "https://jcenter.bintray.com/org/antlr/ST4/4.0.8/ST4-4.0.8.jar", + url = "https://repo1.maven.org/maven2/org/antlr/ST4/4.0.8/ST4-4.0.8.jar", sha256 = "58caabc40c9f74b0b5993fd868e0f64a50c0759094e6a251aaafad98edfc7a3b", ) http_jar( name = "javax_json", - url = "https://jcenter.bintray.com/org/glassfish/javax.json/1.0.4/javax.json-1.0.4.jar", + url = "https://repo1.maven.org/maven2/org/glassfish/javax.json/1.0.4/javax.json-1.0.4.jar", sha256 = "0e1dec40a1ede965941251eda968aeee052cc4f50378bc316cc48e8159bdbeb4", ) ```