Bazel: Remove the reference in BAZEL-JVM.md to Artifactory. (#7059)

* Bazel: Remove the reference in BAZEL-JVM.md to Artifactory.

That link won't work for external contributors.

CHANGELOG_BEGIN
CHANGELOG_END

* Bazel: Hashes need 64 hex digits, not a random number.

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>

Co-authored-by: Moritz Kiefer <moritz.kiefer@purelyfunctional.org>
This commit is contained in:
Samir Talwar 2020-08-07 12:28:14 +02:00 committed by GitHub
parent 52cb1d1b3a
commit 804c1597e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,25 +77,26 @@ compiler and core libraries to use:
``` ```
load('@io_bazel_rules_scala//scala:scala.bzl', 'scala_repositories') load('@io_bazel_rules_scala//scala:scala.bzl', 'scala_repositories')
scala_repositories(("2.12.6", { scala_repositories((
"scala_compiler": "3023b07cc02f2b0217b2c04f8e636b396130b3a8544a8dfad498a19c3e57a863", "2.12.11",
"scala_library": "f81d7144f0ce1b8123335b72ba39003c4be2870767aca15dd0888ba3dab65e98", {
"scala_reflect": "ffa70d522fc9f9deec14358aa674e6dd75c9dfa39d4668ef15bb52f002ce99fa" "scala_compiler": "e901937dbeeae1715b231a7cfcd547a10d5bbf0dfb9d52d2886eae18b4d62ab6",
})) "scala_library": "dbfe77a3fc7a16c0c7cb6cb2b91fecec5438f2803112a744cb1b187926a138be",
"scala_reflect": "5f9e156aeba45ef2c4d24b303405db259082739015190b3b334811843bd90d6a",
},
))
load('@io_bazel_rules_scala//scala:toolchains.bzl', 'scala_register_toolchains') load('@io_bazel_rules_scala//scala:toolchains.bzl', 'scala_register_toolchains')
scala_register_toolchains() scala_register_toolchains()
``` ```
If you need to update the Scala version, make sure to also update the If you need to update the Scala version, make sure to also update the
corresponding SHA-256 hashes in hexadecimal encoding. The hashes can be looked corresponding SHA-256 hashes in hexadecimal encoding. If you don't know the
up in the [Artifactory repository browser][artifactory_browser_hash] in the hash, set it to 64 zeroes and Bazel will correct you.
very bottom of the "General" pane.
See the [`rules_scala` setup guide][rules_scala_setup] for further details. See the [`rules_scala` setup guide][rules_scala_setup] for further details.
[rules_scala]: https://github.com/bazelbuild/rules_scala [rules_scala]: https://github.com/bazelbuild/rules_scala
[rules_scala_setup]: https://github.com/bazelbuild/rules_scala#getting-started [rules_scala_setup]: https://github.com/bazelbuild/rules_scala#getting-started
[artifactory_browser_hash]: https://digitalasset.jfrog.io/digitalasset/webapp/#/artifacts/browse/tree/General/jcenter-cache/org/scala-lang/scala-reflect/2.12.6/scala-reflect-2.12.6.jar
### Maven JAR Dependencies ### Maven JAR Dependencies