我正在尝试从 maven 迁移到 bazel。我在 bazel 文档中看到了教程,它有一个示例 WORKSPACE 文件。关联
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
RULES_JVM_EXTERNAL_TAG = "2.8"
RULES_JVM_EXTERNAL_SHA = "79c9850690d7614ecdb72d68394f994fef7534b292c4867ce5e7dec0aa7bdfad"
http_archive(
name = "rules_jvm_external",
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
sha256 = RULES_JVM_EXTERNAL_SHA,
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG,
)
有人可以解释一下这里发生了什么吗?给出的示例 WORKSPACE 文件的其余部分是不言自明的,我们在其中说明项目需要哪些 maven 依赖项。谢谢。