Skip to content

Commit

Permalink
JCenter / Bintray Sunset: use Maven Central (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertocavalcante authored Sep 28, 2024
1 parent db14b13 commit 69ab63a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
6 changes: 3 additions & 3 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
5 changes: 1 addition & 4 deletions antlr/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down
10 changes: 5 additions & 5 deletions docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
```
Expand Down

0 comments on commit 69ab63a

Please sign in to comment.