forked from bazelbuild/rules_scala
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
load_rules_dependencies
to scala/deps.bzl
Ensures we get all the versions of dependencies we want in `WORKSPACE`, while providing a new API to consumers. Part of bazelbuild#1652.
- Loading branch information
Showing
3 changed files
with
64 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
def load_rules_dependencies(): | ||
if not native.existing_rule("bazel_skylib"): | ||
http_archive( | ||
name = "bazel_skylib", | ||
sha256 = "bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f", | ||
urls = [ | ||
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz", | ||
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz", | ||
], | ||
) | ||
|
||
if not native.existing_rule("rules_cc"): | ||
http_archive( | ||
name = "rules_cc", | ||
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz"], | ||
sha256 = "2037875b9a4456dce4a79d112a8ae885bbc4aad968e6587dca6e64f3a0900cdf", | ||
strip_prefix = "rules_cc-0.0.9", | ||
) | ||
|
||
if not native.existing_rule("com_google_absl"): | ||
http_archive( | ||
name = "com_google_absl", | ||
sha256 = "91ac87d30cc6d79f9ab974c51874a704de9c2647c40f6932597329a282217ba8", | ||
strip_prefix = "abseil-cpp-20220623.1", | ||
url = "https://github.com/abseil/abseil-cpp/archive/refs/tags/20220623.1.tar.gz", | ||
) | ||
|
||
if not native.existing_rule("rules_java"): | ||
http_archive( | ||
name = "rules_java", | ||
urls = [ | ||
"https://github.com/bazelbuild/rules_java/releases/download/7.9.0/rules_java-7.9.0.tar.gz", | ||
], | ||
sha256 = "41131de4417de70b9597e6ebd515168ed0ba843a325dc54a81b92d7af9a7b3ea", | ||
) | ||
|
||
if not native.existing_rule("com_google_protobuf"): | ||
http_archive( | ||
name = "com_google_protobuf", | ||
sha256 = "75be42bd736f4df6d702a0e4e4d30de9ee40eac024c4b845d17ae4cc831fe4ae", | ||
strip_prefix = "protobuf-21.7", | ||
url = "https://github.com/protocolbuffers/protobuf/archive/refs/tags/v21.7.tar.gz", | ||
) | ||
|
||
if not native.existing_rule("rules_proto"): | ||
http_archive( | ||
name = "rules_proto", | ||
sha256 = "6fb6767d1bef535310547e03247f7518b03487740c11b6c6adb7952033fe1295", | ||
strip_prefix = "rules_proto-6.0.2", | ||
url = "https://github.com/bazelbuild/rules_proto/releases/download/6.0.2/rules_proto-6.0.2.tar.gz", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters