forked from bazel-contrib/rules_jvm_external
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use bazel's native json decode method
This means that `rules_jvm_external` is only compatible with Bazel 4 and later. That shipped on 2021-01-21, and so should be widely adopted already. Older versions of this ruleset will continue to work for repos using older versions of Bazel so it's not removing any existing functionality, and the new Bazel 5 release should have already shipped. The main reason for doing this is that the native json decoding is significantly faster than the starlark-based one. The following options were explored as alternatives: 1. Making the `json_parse` method check the bazel version and optionally use the `json` module if it was present. This doesn't work because of #12735 2. Create a `json` repository rule that creates a repo that exposes a `json.bzl` file that delegates to the native `json` module if present, or the starlark one if not (as determined by looking at the major version number of bazel). This doesn't work because `maven_install` is used by RJE's own `repositories.bzl` file, so there's no chance to load the repository rule before it's needed. Links: 12735: bazelbuild/bazel#12735
- Loading branch information
Showing
11 changed files
with
20 additions
and
2,517 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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.