Skip to content

Commit d7c9f82

Browse files
chore(deps): update dependency rules_java to v9.3.0 (#628)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_java](https://redirect.github.com/bazelbuild/rules_java) | http_archive | minor | `9.1.0` -> `9.3.0` | --- ### Release Notes <details> <summary>bazelbuild/rules_java (rules_java)</summary> ### [`v9.3.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/9.3.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/9.2.0...9.3.0) **Changes since 9.2.0** [`9d6184b`](https://redirect.github.com/bazelbuild/rules_java/commit/9d6184b9f6979fe5680f8b99173656a45aea53e8) Release `rules_java` `9.3.0` [`92f1486`](https://redirect.github.com/bazelbuild/rules_java/commit/92f148693341f6f7e10667af5f02a6829eda235b) Update to `java_tools` `18.1` [`14562f0`](https://redirect.github.com/bazelbuild/rules_java/commit/14562f01110b7fb272625abe8250d438a7855993) Support --library boolean flag for Android Lint in Java rules [`2095190`](https://redirect.github.com/bazelbuild/rules_java/commit/20951906fa6a74346663acc39a6fd22378128cb6) Refer to the SingleJar "executable" instead of "deploy jar." **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "9.3.0") ``` **WORKSPACE setup** With Bazel 8.0.0 and before 8.3.0, add the following to your file: ``` ##### bazelbuild/bazel#26119 common --repositories_without_autoloads=bazel_features_version,bazel_features_globals ``` In all cases, add the following to your file: ``` load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/9.3.0/rules_java-9.3.0.tar.gz", ], sha256 = "6ef26d4f978e8b4cf5ce1d47532d70cb62cd18431227a1c8007c8f7843243c06", ) http_archive( name = "bazel_features", sha256 = "a660027f5a87f13224ab54b8dc6e191693c554f2692fcca46e8e29ee7dabc43b", strip_prefix = "bazel_features-1.30.0", url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.30.0/bazel_features-v1.30.0.tar.gz", ) load("@&#8203;bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() load("@&#8203;rules_java//java:rules_java_deps.bzl", "rules_java_dependencies") rules_java_dependencies() ##### note that the following line is what is minimally required from protobuf for the java rules ##### consider using the protobuf_deps() public API from @&#8203;com_google_protobuf//:protobuf_deps.bzl load("@&#8203;com_google_protobuf//bazel/private:proto_bazel_features.bzl", "proto_bazel_features") # buildifier: disable=bzl-visibility proto_bazel_features(name = "proto_bazel_features") ##### register toolchains load("@&#8203;rules_java//java:repositories.bzl", "rules_java_toolchains") rules_java_toolchains() ``` **Using the rules** See [the source](https://redirect.github.com/bazelbuild/rules_java/tree/9.3.0). ### [`v9.2.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/9.2.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/9.1.0...9.2.0) **Changes since 9.1.0** [`dbd8cb4`](https://redirect.github.com/bazelbuild/rules_java/commit/dbd8cb408911b79c6d7047ac4355ff89b1b90685) Release `rules_java` `v9.2.0` [`686ed85`](https://redirect.github.com/bazelbuild/rules_java/commit/686ed85f30ae22018327552d5d2d9a4f8486d772) Update to `java_tools` `v18.0` [`8bf8bca`](https://redirect.github.com/bazelbuild/rules_java/commit/8bf8bcaca17fc15ba4fff3229d4eead4b653214a) Extract utility methods used in the loading phase from `impl/java_helper.bzl` into a separate bzl file **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "9.2.0") ``` **WORKSPACE setup** With Bazel 8.0.0 and before 8.3.0, add the following to your file: ``` ##### bazelbuild/bazel#26119 common --repositories_without_autoloads=bazel_features_version,bazel_features_globals ``` In all cases, add the following to your file: ``` load("@&#8203;bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/9.2.0/rules_java-9.2.0.tar.gz", ], sha256 = "2f822fbc33b99de5bbeaceada4be2bd3bb5c8da80e2f7462a9d300c8fc312f11", ) http_archive( name = "bazel_features", sha256 = "a660027f5a87f13224ab54b8dc6e191693c554f2692fcca46e8e29ee7dabc43b", strip_prefix = "bazel_features-1.30.0", url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.30.0/bazel_features-v1.30.0.tar.gz", ) load("@&#8203;bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() load("@&#8203;rules_java//java:rules_java_deps.bzl", "rules_java_dependencies") rules_java_dependencies() ##### note that the following line is what is minimally required from protobuf for the java rules ##### consider using the protobuf_deps() public API from @&#8203;com_google_protobuf//:protobuf_deps.bzl load("@&#8203;com_google_protobuf//bazel/private:proto_bazel_features.bzl", "proto_bazel_features") # buildifier: disable=bzl-visibility proto_bazel_features(name = "proto_bazel_features") ##### register toolchains load("@&#8203;rules_java//java:repositories.bzl", "rules_java_toolchains") rules_java_toolchains() ``` **Using the rules** See [the source](https://redirect.github.com/bazelbuild/rules_java/tree/9.2.0). </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/bazel-contrib/toolchains_llvm). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xOS45IiwidXBkYXRlZEluVmVyIjoiNDIuMzIuMiIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 8b804b1 commit d7c9f82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/WORKSPACE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ protobuf_deps()
345345

346346
http_archive(
347347
name = "rules_java",
348-
sha256 = "4e1a28a25c2efa53500c928d22ceffbc505dd95b335a2d025836a293b592212f",
349-
urls = ["https://github.com/bazelbuild/rules_java/releases/download/9.1.0/rules_java-9.1.0.tar.gz"],
348+
sha256 = "6ef26d4f978e8b4cf5ce1d47532d70cb62cd18431227a1c8007c8f7843243c06",
349+
urls = ["https://github.com/bazelbuild/rules_java/releases/download/9.3.0/rules_java-9.3.0.tar.gz"],
350350
)
351351

352352
load("@rules_java//java:rules_java_deps.bzl", "rules_java_dependencies")

0 commit comments

Comments
 (0)