Disable autoloads in all bazel_features repositories#26119
Closed
hvadehra wants to merge 1 commit into
Closed
Conversation
Collaborator
|
@bazel-io fork 8.3.0 |
WORKSPACE mode
comius
approved these changes
May 23, 2025
bazel-io
pushed a commit
to bazel-io/bazel
that referenced
this pull request
May 23, 2025
This fixes the case of rules repositories using bazel_features in WORKSPACE mode. Closes bazelbuild#26119. PiperOrigin-RevId: 762346522 Change-Id: I80be8c1b0162f5d0706403af26af21e31a6dc2cc
fmeum
pushed a commit
to fmeum/with_cfg.bzl
that referenced
this pull request
Jun 11, 2025
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_java](https://redirect.github.com/bazelbuild/rules_java) | bazel_dep | minor | `8.11.0` -> `8.12.0` | --- ### Release Notes <details> <summary>bazelbuild/rules_java (rules_java)</summary> ### [`v8.12.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.12.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.11.0...8.12.0) **IMPORTANT**: Bazel 8 users still using WORKSPACE please note the change in the setup below. **Changes since 8.11.0** [`808f849`](https://redirect.github.com/bazelbuild/rules_java/commit/808f8496a00a153840025a549b51d99bba874565) Use the `launcher_maker` toolchain if available ([#​294](https://redirect.github.com/bazelbuild/rules_java/issues/294)) [`042e9a6`](https://redirect.github.com/bazelbuild/rules_java/commit/042e9a629ca2cab8b13539aeaee055a9e7394fd8) Use `@platforms//host` instead of `@local_config_platform` [`4ce6ca9`](https://redirect.github.com/bazelbuild/rules_java/commit/4ce6ca94017971b4877a08fe178b005972d6a15b) Validate `java_common.compile(strict_deps)` in Starlark [`94426d1`](https://redirect.github.com/bazelbuild/rules_java/commit/94426d158cdc6fdfcba524ff042bf8ffddf9514a) Fix case handling of `java_common.compile(strict_deps)` [`1d2eecd`](https://redirect.github.com/bazelbuild/rules_java/commit/1d2eecd61d1af30d70ec183c997c04eb82af32dc) Remove support for empty jars attribute from java_import [`86962f9`](https://redirect.github.com/bazelbuild/rules_java/commit/86962f9c8ed73de61154e257626771c8e5df5451) Change deprecation message to be more helpful for java_proto_library/java_lite_proto_library [`9fac3ac`](https://redirect.github.com/bazelbuild/rules_java/commit/9fac3acdcb688d3e59ce99093749d51cacad08f4) Configure coverage helpers for the test exec group ([#​292](https://redirect.github.com/bazelbuild/rules_java/issues/292)) [`4b5e2a9`](https://redirect.github.com/bazelbuild/rules_java/commit/4b5e2a936889ca423530a14afee68046918ad4b0) Fix empty jars check for Bazel java_import [`ad510ed`](https://redirect.github.com/bazelbuild/rules_java/commit/ad510edc8012877fd0fd7325093855c0401c9738) Remove usages of `--incompatible_disable_non_executable_java_binary` [`2779574`](https://redirect.github.com/bazelbuild/rules_java/commit/277957425bf7a7116da87709b4dc7df4441b377c) The `test_class` of a `java_test` for JUnit4 does not have to have `@RunWith`. [`bf2fb43`](https://redirect.github.com/bazelbuild/rules_java/commit/bf2fb4317a4d0f4e59759fc83e8208ab71e3c3e3) Fix comment [`da9eee2`](https://redirect.github.com/bazelbuild/rules_java/commit/da9eee279c1f95822ad4bd3d624cceb3910f986b) Fix classpath separator when cross-compiling from Windows to Unix ([#​290](https://redirect.github.com/bazelbuild/rules_java/issues/290)) [`bd9c5f8`](https://redirect.github.com/bazelbuild/rules_java/commit/bd9c5f8678ad149db90ee349a6a4c3dafb9212b4) Change type of `output_licenses` from `attr.license` to `attr.string_list`. [`804e93e`](https://redirect.github.com/bazelbuild/rules_java/commit/804e93e70f610a900b55af9208a3ba86fa5f5fcc) Update to `java_tools` `v14.0` ([#​286](https://redirect.github.com/bazelbuild/rules_java/issues/286)) [`05ee692`](https://redirect.github.com/bazelbuild/rules_java/commit/05ee69248c4ac3014399fbcc4052f9c17497ba2e) Add ppc64le platform support ([#​274](https://redirect.github.com/bazelbuild/rules_java/issues/274)) [`1b5a8b2`](https://redirect.github.com/bazelbuild/rules_java/commit/1b5a8b24a7d87298fdaeb5e28a8d84c1c2337d82) Set use_default_shell_env = True consistently. ([#​276](https://redirect.github.com/bazelbuild/rules_java/issues/276)) **MODULE.bazel setup** bazel_dep(name = "rules_java", version = "8.12.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("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.12.0/rules_java-8.12.0.tar.gz", ], sha256 = "1558508fc6c348d7f99477bd21681e5746936f15f0436b5f4233e30832a590f9", ) load("@​rules_java//java:rules_java_deps.bzl", "rules_java_dependencies") rules_java_dependencies() load("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() ### note that the following line is what is minimally required from protobuf for the java rules ### consider using the protobuf_deps() public API from @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.12.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/fmeum/with_cfg.bzl). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4xNi4wIiwidXBkYXRlZEluVmVyIjoiNDAuMTYuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
mbland
added a commit
to mbland/rules_scala
that referenced
this pull request
Jun 13, 2025
Fixes a few problems when building under `WORKSPACE` with Bazel 8.2.1 (7.6.1 doesn't require these changes). Adds to `.bazelrc` the `--incompatible_autoload_externally=` flag as a common option for all builds, and a (disabled) line of options for `WORKSPACE` builds. Bumps these development dependency versions: - `com_google_buildifier_buildtools`: 5.1.0 => 8.2.1 - `rules_shell`: 0.4.1 => 0.5.0 --- Though `WORKSPACE` is on the way out, we should ensure that `rules_scala` remains as compatible as it can be until it's totally gone. All of these errors happened when running `./test_all` with Bazel 8.2.1 and `WORKSPACE` enabled while working on bazel-contrib#1747. The first error was the following "cycle". (I later realized it's somehow due to bazelbuild/rules_java#294 from `rules_java` 8.12.0. See the note at the very end below.) ```sh $ bazel run //tools:lint_check ERROR: Cycle caused by autoloads, failed to load .bzl file '@@bazel_features_version//:version.bzl'. Add 'bazel_features_version' to --repositories_without_autoloads or disable autoloads by setting '--incompatible_autoload_externally=' More information on bazelbuild/bazel#23043. ``` `--incompatible_autoload_externally=` fixed this problem, but also precipitated all the other errors below. - bazelbuild/bazel#23043 - https://bazel.build/reference/command-line-reference#common_options-flag--incompatible_autoload_externally Updating `com_github_bazelbuild_buildtools` to v8.2.1 fixes the next error, whereby Bazel no longer autoloaded `sh_test`. v5.1.0 was missing the required `load("@rules_shell//shell:sh_test.bzl", "sh_test")` statement, added in v8.0.3 by bazelbuild/buildtools#1332: ```sh $ bazel run //tools:lint_check ERROR: .../external/com_github_bazelbuild_buildtools/buildifier/BUILD.bazel:60:1: name 'sh_test' is not defined (did you mean 'cc_test'?) ERROR: .../external/com_github_bazelbuild_buildtools/buildifier/BUILD.bazel: no such target '@@com_github_bazelbuild_buildtools//buildifier:runner.bash.template': target 'runner.bash.template' not declared in package 'buildifier' defined by .../external/com_github_bazelbuild_buildtools/buildifier/BUILD.bazel; however, a source file of this name exists. (Perhaps add 'exports_files(["runner.bash.template"])' to buildifier/BUILD?) ERROR: /Users/mbland/src/bazel-contrib/rules_scala/tools/BUILD:19:11: every rule of type _buildifier implicitly depends upon the target '@@com_github_bazelbuild_buildtools//buildifier:runner.bash.template', but this target could not be found because of: no such target '@@com_github_bazelbuild_buildtools//buildifier:runner.bash.template': target 'runner.bash.template' not declared in package 'buildifier' defined by .../external/com_github_bazelbuild_buildtools/buildifier/BUILD.bazel; however, a source file of this name exists. (Perhaps add 'exports_files(["runner.bash.template"])' to buildifier/BUILD?) ERROR: Analysis of target '//tools:lint_check' failed; build aborted: Analysis failed ``` Upgrading to v8.2.1 and updating `//tools:lint_check` to become a `buildifier_test` also finally got rid of this next warning. This required exporting the `MODULE.bazel` file from the root package, disabling one lint warning, and accepting a couple of new lint fixes: ```txt DEBUG: .../external/+dev_deps+com_github_bazelbuild_buildtools/buildifier/internal/factory.bzl:17:10: DEPRECATION NOTICE: value 'check' for attribute 'mode' will be removed in the future. Migrate '@@//tools:lint_check' to buildifier_test. ``` Adding `rules_jvm_external` 6.7 to `//scala:latest_deps.bzl` fixes this next error, described in detail in: - protocolbuffers/protobuf#19129 (comment) ```sh $ bazel build --test_output=errors src/... test/... ERROR: .../external/com_google_protobuf/java/core/BUILD.bazel:169:21: @@com_google_protobuf//java/core:lite_mvn-lib: no such attribute 'javacopts' in 'java_library' rule ERROR: .../external/com_google_protobuf/java/core/BUILD.bazel:169:21: @@com_google_protobuf//java/core:lite_mvn-lib: no such attribute 'resources' in 'java_library' rule (did you mean 'features'?) ERROR: .../external/com_google_protobuf/java/core/BUILD.bazel:169:21: @@com_google_protobuf//java/core:lite_mvn-lib: no such attribute 'runtime_deps' in 'java_library' rule ERROR: .../external/com_google_protobuf/java/core/BUILD.bazel:287:21: @@com_google_protobuf//java/core:core_mvn-lib: no such attribute 'javacopts' in 'java_library' rule ERROR: .../external/com_google_protobuf/java/core/BUILD.bazel:287:21: @@com_google_protobuf//java/core:core_mvn-lib: no such attribute 'resources' in 'java_library' rule (did you mean 'features'?) ERROR: .../external/com_google_protobuf/java/core/BUILD.bazel:287:21: @@com_google_protobuf//java/core:core_mvn-lib: no such attribute 'runtime_deps' in 'java_library' rule ERROR: .../external/com_google_protobuf/BUILD.bazel:475:6: Target '@@com_google_protobuf//java/core:core' contains an error and its package is in error and referenced by '@@com_google_protobuf//:protobuf_java' ERROR: Analysis of target '//test/proto/custom_generator:failing_scala_proto_deps_toolchain_def' failed; build aborted: Analysis failed ``` All of the previous errors only affected `rules_scala`'s own development builds and test runs, when it is the main repository/root module. This final error is something users could possibly run into when using `--incompatible_autoload_externally=` with `rules_scala`. `jvm_import` statements in Maven dependency repos generated by `jvm_import_external` from `//scala:scala_maven_import_external.bzl` began to fail. Defining `_JAVA_IMPORT_RULE_LOAD` and using it as the default value for the `rule_load` attribute of the `_jvm_import_external` rule fixed this: ```sh $ bazel test --test_output=errors third_party/... ERROR: .../external/org_apache_commons_commons_lang_3_5_without_file/BUILD:7:12: @@org_apache_commons_commons_lang_3_5_without_file//:org_apache_commons_commons_lang_3_5_without_file: no such attribute 'jars' in 'java_import' rule ERROR: .../external/org_apache_commons_commons_lang_3_5_without_file/BUILD:7:12: @@org_apache_commons_commons_lang_3_5_without_file//:org_apache_commons_commons_lang_3_5_without_file: no such attribute 'neverlink' in 'java_import' rule ERROR: .../external/org_apache_commons_commons_lang_3_5_without_file/BUILD:14:12: @@org_apache_commons_commons_lang_3_5_without_file//:linkable_org_apache_commons_commons_lang_3_5_without_file: no such attribute 'jars' in 'java_import' rule ERROR: .../third_party/dependency_analyzer/src/test/BUILD:4:6: Target '@@org_apache_commons_commons_lang_3_5_without_file//:linkable_org_apache_commons_commons_lang_3_5_without_file' contains an error and its package is in error and referenced by '//third_party/dependency_analyzer/src/test:strict_deps_test' ERROR: Analysis of target '//third_party/dependency_analyzer/src/test:strict_deps_test' failed; build aborted: Analysis failed ``` --- And just now, I'm noticing that I'd already added the following to `.bazelrc`, where the `rules_java` release references bazelbuild/bazel#26119: ```sh # Uncomment for WORKSPACE builds for Bazel [8.0.0, 8.3.0) per: # https://github.com/bazelbuild/rules_java/releases/tag/8.12.0 #common --repositories_without_autoloads=bazel_features_version,bazel_features_globals ``` Oh well. But now we're future proof.
Member
|
The changes in this PR have been included in Bazel 8.3.0 RC1. Please test out the release candidate and report any issues as soon as possible. |
fmeum
pushed a commit
to fmeum/with_cfg.bzl
that referenced
this pull request
Jul 15, 2025
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_java](https://redirect.github.com/bazelbuild/rules_java) | bazel_dep | minor | `8.12.0` -> `8.13.0` | --- ### Release Notes <details> <summary>bazelbuild/rules_java (rules_java)</summary> ### [`v8.13.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.13.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.12.0...8.13.0) **Changes since 8.12.0** [`d1e335a`](https://redirect.github.com/bazelbuild/rules_java/commit/d1e335a58dcc24ca386042d7d9891d71013650d5) Release `rules_java` `v8.13.0` [`c289c72`](https://redirect.github.com/bazelbuild/rules_java/commit/c289c727a19935dc6292545ce101972e02a667fd) Update `java_tools` `v15.0` [`d927aa0`](https://redirect.github.com/bazelbuild/rules_java/commit/d927aa05abfda8bf3fb988ab77dc73d5f2a825f5) Fix Runfiles docs after [#​301](https://redirect.github.com/bazelbuild/rules_java/issues/301) ([#​302](https://redirect.github.com/bazelbuild/rules_java/issues/302)) [`1a2c184`](https://redirect.github.com/bazelbuild/rules_java/commit/1a2c184bfc9423ea236db869841291de3be2f0da) use DefaultInfo in rules\_java ([#​303](https://redirect.github.com/bazelbuild/rules_java/issues/303)) [`1947744`](https://redirect.github.com/bazelbuild/rules_java/commit/1947744286abd43834fd1c2a3c5a6b7495a669d5) Add support for `--incompatible_compact_repo_mapping_manifest` ([#​301](https://redirect.github.com/bazelbuild/rules_java/issues/301)) [`fecb9fb`](https://redirect.github.com/bazelbuild/rules_java/commit/fecb9fbe5e5417997bb8dda24c1873a130baf7d4) Remove a reference to incompatible\_disallow\_java\_import\_empty\_jars after unknown commit [`a75e722`](https://redirect.github.com/bazelbuild/rules_java/commit/a75e722ee86e248a129e7eca7fbe33eb68a2168d) In `make_non_strict`, `header_compilation_direct_deps` should be the same as `compile_jars`, not `full_compile_jars` [`ae8a5b2`](https://redirect.github.com/bazelbuild/rules_java/commit/ae8a5b22648f3e6c8a4bc58ec0bb9f7c3f1a9668) Initial support for header compilation direct deps [`899c2b7`](https://redirect.github.com/bazelbuild/rules_java/commit/899c2b75bdce62dbec082a3ad664f9f0b5f6ede9) Improve the error message for no matching bootclasspath ([#​296](https://redirect.github.com/bazelbuild/rules_java/issues/296)) [`0af04ab`](https://redirect.github.com/bazelbuild/rules_java/commit/0af04abb2e8d0148ab05644223f3a3191671ecbb) Replace asserts on library\_identifier with static\_library **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.13.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("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.13.0/rules_java-8.13.0.tar.gz", ], sha256 = "b6c6d92ca9dbb77de31fb6c6a794d20427072663ce41c2b047902ffcc123e3ef", ) load("@​rules_java//java:rules_java_deps.bzl", "rules_java_dependencies") rules_java_dependencies() load("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() ### note that the following line is what is minimally required from protobuf for the java rules ### consider using the protobuf_deps() public API from @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.13.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/fmeum/with_cfg.bzl). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC42MC4xIiwidXBkYXRlZEluVmVyIjoiNDAuNjAuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
fmeum
pushed a commit
to fmeum/with_cfg.bzl
that referenced
this pull request
Jul 18, 2025
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_java](https://redirect.github.com/bazelbuild/rules_java) | bazel_dep | minor | `8.13.0` -> `8.14.0` | --- ### Release Notes <details> <summary>bazelbuild/rules_java (rules_java)</summary> ### [`v8.14.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.14.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.13.0...8.14.0) **Changes since 8.13.0** [`3b9ca99`](https://redirect.github.com/bazelbuild/rules_java/commit/3b9ca9949516b1211d4626985c1755252241d559) Update to `java_tools` `v16.0` [`0b94d21`](https://redirect.github.com/bazelbuild/rules_java/commit/0b94d21938932eab2367fdca443b1f8a5196f7ae) Use root test\_deps target from bazel\_skylib ([#​306](https://redirect.github.com/bazelbuild/rules_java/issues/306)) [`aec334a`](https://redirect.github.com/bazelbuild/rules_java/commit/aec334a90360d4a3213d70810199679f53fa663c) Migrate from deprecated cc\_linking\_context.libraries\_to\_link to cc\_linking\_context.linker\_inputs.libraries [`d3f3408`](https://redirect.github.com/bazelbuild/rules_java/commit/d3f34085e87d436e12e1df2fa2d018cba59d0e2b) Make C++ toolchain explicitly not mandatory [`3daed1a`](https://redirect.github.com/bazelbuild/rules_java/commit/3daed1aeb1baa4d8867119785d60b50be4aa8b40) Update `@rules_java` CI to use Bazel `8.3.0` **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.14.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("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.14.0/rules_java-8.14.0.tar.gz", ], sha256 = "bbe7d94360cc9ed4607ec5fd94995fd1ec41e84257020b6f09e64055281ecb12", ) load("@​rules_java//java:rules_java_deps.bzl", "rules_java_dependencies") rules_java_dependencies() load("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() ##### note that the following line is what is minimally required from protobuf for the java rules ##### consider using the protobuf_deps() public API from @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.14.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/fmeum/with_cfg.bzl). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4yMy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMjMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
simuons
pushed a commit
to bazel-contrib/rules_scala
that referenced
this pull request
Jul 23, 2025
Fixes a few problems when building under `WORKSPACE` with Bazel 8.2.1 (7.6.1 doesn't require these changes). Adds to `.bazelrc` the `--incompatible_autoload_externally=` flag as a common option for all builds, and a (disabled) line of options for `WORKSPACE` builds. Bumps these development dependency versions: - `com_google_buildifier_buildtools`: 5.1.0 => 8.2.1 - `rules_shell`: 0.4.1 => 0.5.0 --- Though `WORKSPACE` is on the way out, we should ensure that `rules_scala` remains as compatible as it can be until it's totally gone. All of these errors happened when running `./test_all` with Bazel 8.2.1 and `WORKSPACE` enabled while working on #1747. The first error was the following "cycle". (I later realized it's somehow due to bazelbuild/rules_java#294 from `rules_java` 8.12.0. See the note at the very end below.) ```sh $ bazel run //tools:lint_check ERROR: Cycle caused by autoloads, failed to load .bzl file '@@bazel_features_version//:version.bzl'. Add 'bazel_features_version' to --repositories_without_autoloads or disable autoloads by setting '--incompatible_autoload_externally=' More information on bazelbuild/bazel#23043. ``` `--incompatible_autoload_externally=` fixed this problem, but also precipitated all the other errors below. - bazelbuild/bazel#23043 - https://bazel.build/reference/command-line-reference#common_options-flag--incompatible_autoload_externally Updating `com_github_bazelbuild_buildtools` to v8.2.1 fixes the next error, whereby Bazel no longer autoloaded `sh_test`. v5.1.0 was missing the required `load("@rules_shell//shell:sh_test.bzl", "sh_test")` statement, added in v8.0.3 by bazelbuild/buildtools#1332: ```sh $ bazel run //tools:lint_check ERROR: .../external/com_github_bazelbuild_buildtools/buildifier/BUILD.bazel:60:1: name 'sh_test' is not defined (did you mean 'cc_test'?) ERROR: .../external/com_github_bazelbuild_buildtools/buildifier/BUILD.bazel: no such target '@@com_github_bazelbuild_buildtools//buildifier:runner.bash.template': target 'runner.bash.template' not declared in package 'buildifier' defined by .../external/com_github_bazelbuild_buildtools/buildifier/BUILD.bazel; however, a source file of this name exists. (Perhaps add 'exports_files(["runner.bash.template"])' to buildifier/BUILD?) ERROR: /Users/mbland/src/bazel-contrib/rules_scala/tools/BUILD:19:11: every rule of type _buildifier implicitly depends upon the target '@@com_github_bazelbuild_buildtools//buildifier:runner.bash.template', but this target could not be found because of: no such target '@@com_github_bazelbuild_buildtools//buildifier:runner.bash.template': target 'runner.bash.template' not declared in package 'buildifier' defined by .../external/com_github_bazelbuild_buildtools/buildifier/BUILD.bazel; however, a source file of this name exists. (Perhaps add 'exports_files(["runner.bash.template"])' to buildifier/BUILD?) ERROR: Analysis of target '//tools:lint_check' failed; build aborted: Analysis failed ``` Upgrading to v8.2.1 and updating `//tools:lint_check` to become a `buildifier_test` also finally got rid of this next warning. This required exporting the `MODULE.bazel` file from the root package, disabling one lint warning, and accepting a couple of new lint fixes: ```txt DEBUG: .../external/+dev_deps+com_github_bazelbuild_buildtools/buildifier/internal/factory.bzl:17:10: DEPRECATION NOTICE: value 'check' for attribute 'mode' will be removed in the future. Migrate '@@//tools:lint_check' to buildifier_test. ``` Adding `rules_jvm_external` 6.7 to `//scala:latest_deps.bzl` fixes this next error, described in detail in: - protocolbuffers/protobuf#19129 (comment) ```sh $ bazel build --test_output=errors src/... test/... ERROR: .../external/com_google_protobuf/java/core/BUILD.bazel:169:21: @@com_google_protobuf//java/core:lite_mvn-lib: no such attribute 'javacopts' in 'java_library' rule ERROR: .../external/com_google_protobuf/java/core/BUILD.bazel:169:21: @@com_google_protobuf//java/core:lite_mvn-lib: no such attribute 'resources' in 'java_library' rule (did you mean 'features'?) ERROR: .../external/com_google_protobuf/java/core/BUILD.bazel:169:21: @@com_google_protobuf//java/core:lite_mvn-lib: no such attribute 'runtime_deps' in 'java_library' rule ERROR: .../external/com_google_protobuf/java/core/BUILD.bazel:287:21: @@com_google_protobuf//java/core:core_mvn-lib: no such attribute 'javacopts' in 'java_library' rule ERROR: .../external/com_google_protobuf/java/core/BUILD.bazel:287:21: @@com_google_protobuf//java/core:core_mvn-lib: no such attribute 'resources' in 'java_library' rule (did you mean 'features'?) ERROR: .../external/com_google_protobuf/java/core/BUILD.bazel:287:21: @@com_google_protobuf//java/core:core_mvn-lib: no such attribute 'runtime_deps' in 'java_library' rule ERROR: .../external/com_google_protobuf/BUILD.bazel:475:6: Target '@@com_google_protobuf//java/core:core' contains an error and its package is in error and referenced by '@@com_google_protobuf//:protobuf_java' ERROR: Analysis of target '//test/proto/custom_generator:failing_scala_proto_deps_toolchain_def' failed; build aborted: Analysis failed ``` All of the previous errors only affected `rules_scala`'s own development builds and test runs, when it is the main repository/root module. This final error is something users could possibly run into when using `--incompatible_autoload_externally=` with `rules_scala`. `jvm_import` statements in Maven dependency repos generated by `jvm_import_external` from `//scala:scala_maven_import_external.bzl` began to fail. Defining `_JAVA_IMPORT_RULE_LOAD` and using it as the default value for the `rule_load` attribute of the `_jvm_import_external` rule fixed this: ```sh $ bazel test --test_output=errors third_party/... ERROR: .../external/org_apache_commons_commons_lang_3_5_without_file/BUILD:7:12: @@org_apache_commons_commons_lang_3_5_without_file//:org_apache_commons_commons_lang_3_5_without_file: no such attribute 'jars' in 'java_import' rule ERROR: .../external/org_apache_commons_commons_lang_3_5_without_file/BUILD:7:12: @@org_apache_commons_commons_lang_3_5_without_file//:org_apache_commons_commons_lang_3_5_without_file: no such attribute 'neverlink' in 'java_import' rule ERROR: .../external/org_apache_commons_commons_lang_3_5_without_file/BUILD:14:12: @@org_apache_commons_commons_lang_3_5_without_file//:linkable_org_apache_commons_commons_lang_3_5_without_file: no such attribute 'jars' in 'java_import' rule ERROR: .../third_party/dependency_analyzer/src/test/BUILD:4:6: Target '@@org_apache_commons_commons_lang_3_5_without_file//:linkable_org_apache_commons_commons_lang_3_5_without_file' contains an error and its package is in error and referenced by '//third_party/dependency_analyzer/src/test:strict_deps_test' ERROR: Analysis of target '//third_party/dependency_analyzer/src/test:strict_deps_test' failed; build aborted: Analysis failed ``` --- And just now, I'm noticing that I'd already added the following to `.bazelrc`, where the `rules_java` release references bazelbuild/bazel#26119: ```sh # Uncomment for WORKSPACE builds for Bazel [8.0.0, 8.3.0) per: # https://github.com/bazelbuild/rules_java/releases/tag/8.12.0 #common --repositories_without_autoloads=bazel_features_version,bazel_features_globals ``` Oh well. But now we're future proof.
fmeum
pushed a commit
to fmeum/with_cfg.bzl
that referenced
this pull request
Aug 5, 2025
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_java](https://redirect.github.com/bazelbuild/rules_java) | bazel_dep | minor | `8.14.0` -> `8.15.0` | --- ### Release Notes <details> <summary>bazelbuild/rules_java (rules_java)</summary> ### [`v8.15.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.15.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.14.0...8.15.0) **Changes since 8.14.0** [`c0462f0`](https://redirect.github.com/bazelbuild/rules_java/commit/c0462f09c1a6f7607d5d6b86ba291746fd003a86) Update rules\_java to 8.15.0 ([#​309](https://redirect.github.com/bazelbuild/rules_java/issues/309)) [`bbb99fa`](https://redirect.github.com/bazelbuild/rules_java/commit/bbb99fa1450e1a92eb79ae77c841b08af9403ed2) rules\_java: Rename CcInfo#transitive\_native\_libraries to \_legacy\_transitive\_native\_libraries [`d8246a4`](https://redirect.github.com/bazelbuild/rules_java/commit/d8246a409519f9d551dd866a46278e394bd1b295) Automatic code cleanup. **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.15.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("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.15.0/rules_java-8.15.0.tar.gz", ], sha256 = "0a7e8811cac04b553f6c6c0d185046e3c68a4cb774e83f37a7a5fb6a3deee261", ) load("@​rules_java//java:rules_java_deps.bzl", "rules_java_dependencies") rules_java_dependencies() load("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() ### note that the following line is what is minimally required from protobuf for the java rules ### consider using the protobuf_deps() public API from @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.15.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/fmeum/with_cfg.bzl). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS41MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuNTEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
fmeum
pushed a commit
to fmeum/with_cfg.bzl
that referenced
this pull request
Sep 9, 2025
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_java](https://redirect.github.com/bazelbuild/rules_java) | bazel_dep | patch | `8.15.0` -> `8.15.2` | --- ### Release Notes <details> <summary>bazelbuild/rules_java (rules_java)</summary> ### [`v8.15.2`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.15.2) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.15.1...8.15.2) **Changes since 8.15.1** [`52aa53a`](https://redirect.github.com/bazelbuild/rules_java/commit/52aa53a7b7e56a4e545fbda2323db181d3c8ee3d) Add a module extension for registering local/remote jdks ([#​312](https://redirect.github.com/bazelbuild/rules_java/issues/312)) **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.15.2") ``` **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("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.15.2/rules_java-8.15.2.tar.gz", ], sha256 = "47632cc506c858011853073449801d648e10483d4b50e080ec2549a4b2398960", ) load("@​rules_java//java:rules_java_deps.bzl", "rules_java_dependencies") rules_java_dependencies() load("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() ### note that the following line is what is minimally required from protobuf for the java rules ### consider using the protobuf_deps() public API from @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.15.2). ### [`v8.15.1`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.15.1) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.15.0...8.15.1) **Changes since 8.15.0** [`45061b3`](https://redirect.github.com/bazelbuild/rules_java/commit/45061b38c54f4ee8e3038601c5d857154c7ae9db) Fix Java coverage support on Windows by adding coverage\_main\_class to launch\_info ([#​311](https://redirect.github.com/bazelbuild/rules_java/issues/311)) **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.15.1") ``` **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("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.15.1/rules_java-8.15.1.tar.gz", ], sha256 = "9b04cbbb0fee0632aeba628159938484cfadf4a9d2f5b1c356e8300c56467896", ) load("@​rules_java//java:rules_java_deps.bzl", "rules_java_dependencies") rules_java_dependencies() load("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() ### note that the following line is what is minimally required from protobuf for the java rules ### consider using the protobuf_deps() public API from @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.15.1). </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. --- - [x] <!-- 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/fmeum/with_cfg.bzl). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS41MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuOTEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
fmeum
pushed a commit
to fmeum/with_cfg.bzl
that referenced
this pull request
Sep 23, 2025
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more [here](https://redirect.github.com/renovatebot/renovate/discussions/37842). This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_java](https://redirect.github.com/bazelbuild/rules_java) | bazel_dep | minor | `8.15.2` -> `8.16.1` | --- ### Release Notes <details> <summary>bazelbuild/rules_java (rules_java)</summary> ### [`v8.16.1`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.16.1) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.16.0...8.16.1) **Changes since 8.16.0** [`39cae30`](https://redirect.github.com/bazelbuild/rules_java/commit/39cae30eea61d30ac6bbb5358d964cab059aa590) Update the compilation JDK to 25 ([#​323](https://redirect.github.com/bazelbuild/rules_java/issues/323)) **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.16.1") ``` **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("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.16.1/rules_java-8.16.1.tar.gz", ], sha256 = "1b30698d89dccd9dc01b1a4ad7e9e5c6e669cdf1918dbb050334e365b40a1b5e", ) 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("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() load("@​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 @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.16.1). ### [`v8.16.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.16.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.15.2...8.16.0) **Changes since 8.15.2** [`7a625ca`](https://redirect.github.com/bazelbuild/rules_java/commit/7a625caa6c06e5caa522f6402ec4ab2787307655) Add JDK 25 ([#​319](https://redirect.github.com/bazelbuild/rules_java/issues/319)) [`faaab40`](https://redirect.github.com/bazelbuild/rules_java/commit/faaab4062f81deefaeef76dd21b2a5212432f8e3) Use `@bazel_features` for rules\_java compatibility proxy [`4bd56d5`](https://redirect.github.com/bazelbuild/rules_java/commit/4bd56d5d62c7d9a630928c704262dc0a87614829) chore: Support remote\_file\_urls and remote\_file\_integrity in extension ([#​315](https://redirect.github.com/bazelbuild/rules_java/issues/315)) **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.16.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("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.16.0/rules_java-8.16.0.tar.gz", ], sha256 = "9348e88e93ed882bb79719f082277561a6da967e38db6528bd5c748753f5c651", ) 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("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() load("@​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 @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.16.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/fmeum/with_cfg.bzl). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS45Ny4xMCIsInVwZGF0ZWRJblZlciI6IjQxLjk3LjEwIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
helly25
pushed a commit
to bazel-contrib/toolchains_llvm
that referenced
this pull request
Oct 28, 2025
> [!NOTE] > Mend has cancelled [the proposed renaming](https://redirect.github.com/renovatebot/renovate/discussions/37842) of the Renovate GitHub app being renamed to `mend[bot]`. > > This notice will be removed on 2025-10-07. <hr> This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_java](https://redirect.github.com/bazelbuild/rules_java) | http_archive | minor | `8.8.0` -> `8.16.1` | --- ### Release Notes <details> <summary>bazelbuild/rules_java (rules_java)</summary> ### [`v8.16.1`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.16.1) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.16.0...8.16.1) **Changes since 8.16.0** [`39cae30`](https://redirect.github.com/bazelbuild/rules_java/commit/39cae30eea61d30ac6bbb5358d964cab059aa590) Update the compilation JDK to 25 ([#​323](https://redirect.github.com/bazelbuild/rules_java/issues/323)) **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.16.1") ``` **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("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.16.1/rules_java-8.16.1.tar.gz", ], sha256 = "1b30698d89dccd9dc01b1a4ad7e9e5c6e669cdf1918dbb050334e365b40a1b5e", ) 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("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() load("@​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 @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.16.1). ### [`v8.16.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.16.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.15.2...8.16.0) **Changes since 8.15.2** [`7a625ca`](https://redirect.github.com/bazelbuild/rules_java/commit/7a625caa6c06e5caa522f6402ec4ab2787307655) Add JDK 25 ([#​319](https://redirect.github.com/bazelbuild/rules_java/issues/319)) [`faaab40`](https://redirect.github.com/bazelbuild/rules_java/commit/faaab4062f81deefaeef76dd21b2a5212432f8e3) Use `@bazel_features` for rules\_java compatibility proxy [`4bd56d5`](https://redirect.github.com/bazelbuild/rules_java/commit/4bd56d5d62c7d9a630928c704262dc0a87614829) chore: Support remote\_file\_urls and remote\_file\_integrity in extension ([#​315](https://redirect.github.com/bazelbuild/rules_java/issues/315)) **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.16.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("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.16.0/rules_java-8.16.0.tar.gz", ], sha256 = "9348e88e93ed882bb79719f082277561a6da967e38db6528bd5c748753f5c651", ) 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("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() load("@​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 @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.16.0). ### [`v8.15.2`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.15.2) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.15.1...8.15.2) **Changes since 8.15.1** [`52aa53a`](https://redirect.github.com/bazelbuild/rules_java/commit/52aa53a7b7e56a4e545fbda2323db181d3c8ee3d) Add a module extension for registering local/remote jdks ([#​312](https://redirect.github.com/bazelbuild/rules_java/issues/312)) **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.15.2") ``` **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("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.15.2/rules_java-8.15.2.tar.gz", ], sha256 = "47632cc506c858011853073449801d648e10483d4b50e080ec2549a4b2398960", ) load("@​rules_java//java:rules_java_deps.bzl", "rules_java_dependencies") rules_java_dependencies() load("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() ### note that the following line is what is minimally required from protobuf for the java rules ### consider using the protobuf_deps() public API from @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.15.2). ### [`v8.15.1`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.15.1) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.15.0...8.15.1) **Changes since 8.15.0** [`45061b3`](https://redirect.github.com/bazelbuild/rules_java/commit/45061b38c54f4ee8e3038601c5d857154c7ae9db) Fix Java coverage support on Windows by adding coverage\_main\_class to launch\_info ([#​311](https://redirect.github.com/bazelbuild/rules_java/issues/311)) **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.15.1") ``` **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("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.15.1/rules_java-8.15.1.tar.gz", ], sha256 = "9b04cbbb0fee0632aeba628159938484cfadf4a9d2f5b1c356e8300c56467896", ) load("@​rules_java//java:rules_java_deps.bzl", "rules_java_dependencies") rules_java_dependencies() load("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() ### note that the following line is what is minimally required from protobuf for the java rules ### consider using the protobuf_deps() public API from @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.15.1). ### [`v8.15.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.15.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.14.0...8.15.0) **Changes since 8.14.0** [`c0462f0`](https://redirect.github.com/bazelbuild/rules_java/commit/c0462f09c1a6f7607d5d6b86ba291746fd003a86) Update rules\_java to 8.15.0 ([#​309](https://redirect.github.com/bazelbuild/rules_java/issues/309)) [`bbb99fa`](https://redirect.github.com/bazelbuild/rules_java/commit/bbb99fa1450e1a92eb79ae77c841b08af9403ed2) rules\_java: Rename CcInfo#transitive\_native\_libraries to \_legacy\_transitive\_native\_libraries [`d8246a4`](https://redirect.github.com/bazelbuild/rules_java/commit/d8246a409519f9d551dd866a46278e394bd1b295) Automatic code cleanup. **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.15.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("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.15.0/rules_java-8.15.0.tar.gz", ], sha256 = "0a7e8811cac04b553f6c6c0d185046e3c68a4cb774e83f37a7a5fb6a3deee261", ) load("@​rules_java//java:rules_java_deps.bzl", "rules_java_dependencies") rules_java_dependencies() load("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() ### note that the following line is what is minimally required from protobuf for the java rules ### consider using the protobuf_deps() public API from @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.15.0). ### [`v8.14.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.14.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.13.0...8.14.0) **Changes since 8.13.0** [`3b9ca99`](https://redirect.github.com/bazelbuild/rules_java/commit/3b9ca9949516b1211d4626985c1755252241d559) Update to `java_tools` `v16.0` [`0b94d21`](https://redirect.github.com/bazelbuild/rules_java/commit/0b94d21938932eab2367fdca443b1f8a5196f7ae) Use root test\_deps target from bazel\_skylib ([#​306](https://redirect.github.com/bazelbuild/rules_java/issues/306)) [`aec334a`](https://redirect.github.com/bazelbuild/rules_java/commit/aec334a90360d4a3213d70810199679f53fa663c) Migrate from deprecated cc\_linking\_context.libraries\_to\_link to cc\_linking\_context.linker\_inputs.libraries [`d3f3408`](https://redirect.github.com/bazelbuild/rules_java/commit/d3f34085e87d436e12e1df2fa2d018cba59d0e2b) Make C++ toolchain explicitly not mandatory [`3daed1a`](https://redirect.github.com/bazelbuild/rules_java/commit/3daed1aeb1baa4d8867119785d60b50be4aa8b40) Update `@rules_java` CI to use Bazel `8.3.0` **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.14.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("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.14.0/rules_java-8.14.0.tar.gz", ], sha256 = "bbe7d94360cc9ed4607ec5fd94995fd1ec41e84257020b6f09e64055281ecb12", ) load("@​rules_java//java:rules_java_deps.bzl", "rules_java_dependencies") rules_java_dependencies() load("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() ### note that the following line is what is minimally required from protobuf for the java rules ### consider using the protobuf_deps() public API from @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.14.0). ### [`v8.13.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.13.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.12.0...8.13.0) **Changes since 8.12.0** [`d1e335a`](https://redirect.github.com/bazelbuild/rules_java/commit/d1e335a58dcc24ca386042d7d9891d71013650d5) Release `rules_java` `v8.13.0` [`c289c72`](https://redirect.github.com/bazelbuild/rules_java/commit/c289c727a19935dc6292545ce101972e02a667fd) Update `java_tools` `v15.0` [`d927aa0`](https://redirect.github.com/bazelbuild/rules_java/commit/d927aa05abfda8bf3fb988ab77dc73d5f2a825f5) Fix Runfiles docs after [#​301](https://redirect.github.com/bazelbuild/rules_java/issues/301) ([#​302](https://redirect.github.com/bazelbuild/rules_java/issues/302)) [`1a2c184`](https://redirect.github.com/bazelbuild/rules_java/commit/1a2c184bfc9423ea236db869841291de3be2f0da) use DefaultInfo in rules\_java ([#​303](https://redirect.github.com/bazelbuild/rules_java/issues/303)) [`1947744`](https://redirect.github.com/bazelbuild/rules_java/commit/1947744286abd43834fd1c2a3c5a6b7495a669d5) Add support for `--incompatible_compact_repo_mapping_manifest` ([#​301](https://redirect.github.com/bazelbuild/rules_java/issues/301)) [`fecb9fb`](https://redirect.github.com/bazelbuild/rules_java/commit/fecb9fbe5e5417997bb8dda24c1873a130baf7d4) Remove a reference to incompatible\_disallow\_java\_import\_empty\_jars after unknown commit [`a75e722`](https://redirect.github.com/bazelbuild/rules_java/commit/a75e722ee86e248a129e7eca7fbe33eb68a2168d) In `make_non_strict`, `header_compilation_direct_deps` should be the same as `compile_jars`, not `full_compile_jars` [`ae8a5b2`](https://redirect.github.com/bazelbuild/rules_java/commit/ae8a5b22648f3e6c8a4bc58ec0bb9f7c3f1a9668) Initial support for header compilation direct deps [`899c2b7`](https://redirect.github.com/bazelbuild/rules_java/commit/899c2b75bdce62dbec082a3ad664f9f0b5f6ede9) Improve the error message for no matching bootclasspath ([#​296](https://redirect.github.com/bazelbuild/rules_java/issues/296)) [`0af04ab`](https://redirect.github.com/bazelbuild/rules_java/commit/0af04abb2e8d0148ab05644223f3a3191671ecbb) Replace asserts on library\_identifier with static\_library **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.13.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("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.13.0/rules_java-8.13.0.tar.gz", ], sha256 = "b6c6d92ca9dbb77de31fb6c6a794d20427072663ce41c2b047902ffcc123e3ef", ) load("@​rules_java//java:rules_java_deps.bzl", "rules_java_dependencies") rules_java_dependencies() load("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() ##### note that the following line is what is minimally required from protobuf for the java rules ##### consider using the protobuf_deps() public API from @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.13.0). ### [`v8.12.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.12.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.11.0...8.12.0) **IMPORTANT**: Bazel 8 users still using WORKSPACE please note the change in the setup below. **Changes since 8.11.0** [`808f849`](https://redirect.github.com/bazelbuild/rules_java/commit/808f8496a00a153840025a549b51d99bba874565) Use the `launcher_maker` toolchain if available ([#​294](https://redirect.github.com/bazelbuild/rules_java/issues/294)) [`042e9a6`](https://redirect.github.com/bazelbuild/rules_java/commit/042e9a629ca2cab8b13539aeaee055a9e7394fd8) Use `@platforms//host` instead of `@local_config_platform` [`4ce6ca9`](https://redirect.github.com/bazelbuild/rules_java/commit/4ce6ca94017971b4877a08fe178b005972d6a15b) Validate `java_common.compile(strict_deps)` in Starlark [`94426d1`](https://redirect.github.com/bazelbuild/rules_java/commit/94426d158cdc6fdfcba524ff042bf8ffddf9514a) Fix case handling of `java_common.compile(strict_deps)` [`1d2eecd`](https://redirect.github.com/bazelbuild/rules_java/commit/1d2eecd61d1af30d70ec183c997c04eb82af32dc) Remove support for empty jars attribute from java\_import [`86962f9`](https://redirect.github.com/bazelbuild/rules_java/commit/86962f9c8ed73de61154e257626771c8e5df5451) Change deprecation message to be more helpful for java\_proto\_library/java\_lite\_proto\_library [`9fac3ac`](https://redirect.github.com/bazelbuild/rules_java/commit/9fac3acdcb688d3e59ce99093749d51cacad08f4) Configure coverage helpers for the test exec group ([#​292](https://redirect.github.com/bazelbuild/rules_java/issues/292)) [`4b5e2a9`](https://redirect.github.com/bazelbuild/rules_java/commit/4b5e2a936889ca423530a14afee68046918ad4b0) Fix empty jars check for Bazel java\_import [`ad510ed`](https://redirect.github.com/bazelbuild/rules_java/commit/ad510edc8012877fd0fd7325093855c0401c9738) Remove usages of `--incompatible_disable_non_executable_java_binary` [`2779574`](https://redirect.github.com/bazelbuild/rules_java/commit/277957425bf7a7116da87709b4dc7df4441b377c) The `test_class` of a `java_test` for JUnit4 does not have to have `@RunWith`. [`bf2fb43`](https://redirect.github.com/bazelbuild/rules_java/commit/bf2fb4317a4d0f4e59759fc83e8208ab71e3c3e3) Fix comment [`da9eee2`](https://redirect.github.com/bazelbuild/rules_java/commit/da9eee279c1f95822ad4bd3d624cceb3910f986b) Fix classpath separator when cross-compiling from Windows to Unix ([#​290](https://redirect.github.com/bazelbuild/rules_java/issues/290)) [`bd9c5f8`](https://redirect.github.com/bazelbuild/rules_java/commit/bd9c5f8678ad149db90ee349a6a4c3dafb9212b4) Change type of `output_licenses` from `attr.license` to `attr.string_list`. [`804e93e`](https://redirect.github.com/bazelbuild/rules_java/commit/804e93e70f610a900b55af9208a3ba86fa5f5fcc) Update to `java_tools` `v14.0` ([#​286](https://redirect.github.com/bazelbuild/rules_java/issues/286)) [`05ee692`](https://redirect.github.com/bazelbuild/rules_java/commit/05ee69248c4ac3014399fbcc4052f9c17497ba2e) Add ppc64le platform support ([#​274](https://redirect.github.com/bazelbuild/rules_java/issues/274)) [`1b5a8b2`](https://redirect.github.com/bazelbuild/rules_java/commit/1b5a8b24a7d87298fdaeb5e28a8d84c1c2337d82) Set use\_default\_shell\_env = True consistently. ([#​276](https://redirect.github.com/bazelbuild/rules_java/issues/276)) **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.12.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("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.12.0/rules_java-8.12.0.tar.gz", ], sha256 = "1558508fc6c348d7f99477bd21681e5746936f15f0436b5f4233e30832a590f9", ) load("@​rules_java//java:rules_java_deps.bzl", "rules_java_dependencies") rules_java_dependencies() load("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() ### note that the following line is what is minimally required from protobuf for the java rules ### consider using the protobuf_deps() public API from @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.12.0). ### [`v8.11.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.11.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.10.0...8.11.0) **Changes since 8.10.0** [`c100754`](https://redirect.github.com/bazelbuild/rules_java/commit/c100754fb8d3b28b782a26cbcf94c540f7ad713d) Update rules\_java to 8.11.0 and java\_tools to 13.18 ([#​280](https://redirect.github.com/bazelbuild/rules_java/issues/280)) [`16e6f4d`](https://redirect.github.com/bazelbuild/rules_java/commit/16e6f4ddab68b4e8ebffef63b94871d9664d9501) Test with Bazel 8 for rules\_java BCR releases [`ca202de`](https://redirect.github.com/bazelbuild/rules_java/commit/ca202de9f7537413de9901e63debeadf7d5cb2bf) Improve rules\_java CI config [`aef7514`](https://redirect.github.com/bazelbuild/rules_java/commit/aef7514ad80ae6b7c366b7b72dfde40f366498cb) Add java\_library outputs to validation outputs **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.11.0") ``` **WORKSPACE setup** ``` load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.11.0/rules_java-8.11.0.tar.gz", ], sha256 = "d31b6c69e479ffa45460b64dc9c7792a431cac721ef8d5219fc9f603fa2ff877", ) load("@​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 @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.11.0). ### [`v8.10.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.10.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.9.0...8.10.0) **Changes since 8.9.0** [`8b3a998`](https://redirect.github.com/bazelbuild/rules_java/commit/8b3a998cc3e043a2048681e5259766a8ab71f52a) Release `@rules_java` `v8.10.0` [`784f519`](https://redirect.github.com/bazelbuild/rules_java/commit/784f519719ecfce201624fad8e39cb13f67b70cb) Update `java_tools` `v13.17` [`e829603`](https://redirect.github.com/bazelbuild/rules_java/commit/e8296038885518d7eceedffec552150bb9b0fa45) Add a separate config for Bazel 8 to rules\_java CI [`250bbdc`](https://redirect.github.com/bazelbuild/rules_java/commit/250bbdc8e9287d2cdffbeadd2c3485c4b9817ea2) Switch rules\_java back to more named params (quasi-rollback of unknown commit) [`31edc44`](https://redirect.github.com/bazelbuild/rules_java/commit/31edc44e0901b06ddb0f9c96984c69ea77bc8326) Add make variables for runfiles location of $(JAVABASE) to support --no\_legacy\_external\_runfiles. ([#​272](https://redirect.github.com/bazelbuild/rules_java/issues/272)) [`02ab5e6`](https://redirect.github.com/bazelbuild/rules_java/commit/02ab5e6c9bc0310510761b21f951112d81a4eef0) Delete toolchains/BUILD.java\_tools. [`6090866`](https://redirect.github.com/bazelbuild/rules_java/commit/609086687610bb3c13aa76c2bce33a8f85c6e9ff) Extract legacy native symbols to a separate bzl file [`af504cf`](https://redirect.github.com/bazelbuild/rules_java/commit/af504cff01d441676f2d3e3b64c92d010f85d835) Rename `extra_processor_classes` to `processor_classes` for processor bundle support [`6f2db13`](https://redirect.github.com/bazelbuild/rules_java/commit/6f2db13f96fe160a4ec5da0fe2c230bb05e8e38a) Enforce `checkLegalityOfPluginOptions` check on `-AgeneratesKotlin` javacopts. **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.10.0") ``` **WORKSPACE setup** ``` load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.10.0/rules_java-8.10.0.tar.gz", ], sha256 = "476bd403f284e5080037f1910a29ce4c482ac798a3560c2e0df6d6f1857011b6", ) load("@​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 @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.10.0). ### [`v8.9.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/8.9.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.8.0...8.9.0) **Changes since 8.8.0** [`34d7e1b`](https://redirect.github.com/bazelbuild/rules_java/commit/34d7e1bd22b31594c5de10c2d87c3dc6ab8efa74) Update rules\_java to 8.9.0 and java\_tools to 13.16 [`9d2f73e`](https://redirect.github.com/bazelbuild/rules_java/commit/9d2f73e658e03a61cdfb864ec38a8a4a7e56cd9d) Ignore the `exec_group_compatible_with` attribute in `java_binary` transitive validation collection [`93fdd8a`](https://redirect.github.com/bazelbuild/rules_java/commit/93fdd8af3a1087866425a9f162892cc521642698) Add a test asseting that the JavaInfo returned by java\_binary targets are marked as such. [`4aa6673`](https://redirect.github.com/bazelbuild/rules_java/commit/4aa66735ea294529cb9c5a64b8402365d0f07068) Improve `android_support_tests.bzl` **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "8.9.0") ``` **WORKSPACE setup** ``` load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_java", urls = [ "https://github.com/bazelbuild/rules_java/releases/download/8.9.0/rules_java-8.9.0.tar.gz", ], sha256 = "8daa0e4f800979c74387e4cd93f97e576ec6d52beab8ac94710d2931c57f8d8b", ) load("@​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 @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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/8.9.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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDUuMCIsInVwZGF0ZWRJblZlciI6IjQxLjEzMS45IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
dzbarsky
pushed a commit
to bazel-contrib/toolchains_llvm
that referenced
this pull request
Nov 5, 2025
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_java](https://redirect.github.com/bazelbuild/rules_java) | http_archive | major | `8.16.1` -> `9.0.0` | --- ### Release Notes <details> <summary>bazelbuild/rules_java (rules_java)</summary> ### [`v9.0.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/9.0.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/8.16.1...9.0.0) **Changes since 8.16.1** [`a27004a`](https://redirect.github.com/bazelbuild/rules_java/commit/a27004a53d7459992a77002ef8f2a6aaeb119590) Update JDKs to latest patch releases ([#​335](https://redirect.github.com/bazelbuild/rules_java/issues/335)) [`76212e6`](https://redirect.github.com/bazelbuild/rules_java/commit/76212e60692337b1bb10afa98a8163279fe99e17) Include the srcjar (if there is one) in the \_validation output group so blaze will check whether the srcjar file actually exists. [`402b184`](https://redirect.github.com/bazelbuild/rules_java/commit/402b1842d6e17e265c0b5c488f79edd851a202c2) upgrade java\_tools to 17.0 and wire up linux aarch64 prebuilts ([#​334](https://redirect.github.com/bazelbuild/rules_java/issues/334)) [`36264e4`](https://redirect.github.com/bazelbuild/rules_java/commit/36264e47900e693a45b4388c396ca65e8be8a5a8) Update zulu JDKs to latest patch release ([#​327](https://redirect.github.com/bazelbuild/rules_java/issues/327)) ([#​328](https://redirect.github.com/bazelbuild/rules_java/issues/328)) [`7ff9193`](https://redirect.github.com/bazelbuild/rules_java/commit/7ff9193af58807c9b77f3b7cd56063c9b8a9f028) Fix test class determination error message ([#​326](https://redirect.github.com/bazelbuild/rules_java/issues/326)) [`1ed307b`](https://redirect.github.com/bazelbuild/rules_java/commit/1ed307b1d1a5fb06decb7ae3af1622339dd24620) Increase maxwarns to -1 ([#​291](https://redirect.github.com/bazelbuild/rules_java/issues/291)) [`3257e83`](https://redirect.github.com/bazelbuild/rules_java/commit/3257e83974066f089202562d28603e06b06d3831) Re-enable `ReturnValueIgnored` error prone check [`6a30ab8`](https://redirect.github.com/bazelbuild/rules_java/commit/6a30ab8814486d8a6cdb59ffb1bf2cc63496fdfa) Run the bootclasspath through ijar ([#​324](https://redirect.github.com/bazelbuild/rules_java/issues/324)) [`3cbc18e`](https://redirect.github.com/bazelbuild/rules_java/commit/3cbc18e8e874b4d1d017d5e8b862d35624088b60) Update abseil-cpp to remove override ([#​322](https://redirect.github.com/bazelbuild/rules_java/issues/322)) **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "9.0.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("@​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.0.0/rules_java-9.0.0.tar.gz", ], sha256 = "19008f8a85125c9476ef37b6ad945f665d7178aaab3746f7962917ccd87d2477", ) 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("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() load("@​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 @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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.0.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:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNTkuNCIsInVwZGF0ZWRJblZlciI6IjQxLjE1OS40IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
helly25
pushed a commit
to bazel-contrib/toolchains_llvm
that referenced
this pull request
Nov 5, 2025
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_java](https://redirect.github.com/bazelbuild/rules_java) | http_archive | patch | `9.0.0` -> `9.0.1` | --- ### Release Notes <details> <summary>bazelbuild/rules_java (rules_java)</summary> ### [`v9.0.1`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/9.0.1) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/9.0.0...9.0.1) **Changes since 9.0.0** [`b1376dd`](https://redirect.github.com/bazelbuild/rules_java/commit/b1376ddb00e54b7c381c43fc74dc7c269cb8d057) Add support for an unstripped bootclasspath **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "9.0.1") ``` **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("@​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.0.1/rules_java-9.0.1.tar.gz", ], sha256 = "6f0afa5f3a3caddbdbb07d1d26330f5a73620d57a5b00cbfced0459806cdaa10", ) 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("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() load("@​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 @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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.0.1). </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:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNTkuNCIsInVwZGF0ZWRJblZlciI6IjQxLjE1OS40IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
helly25
pushed a commit
to bazel-contrib/toolchains_llvm
that referenced
this pull request
Nov 5, 2025
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_java](https://redirect.github.com/bazelbuild/rules_java) | http_archive | patch | `9.0.1` -> `9.0.2` | --- ### Release Notes <details> <summary>bazelbuild/rules_java (rules_java)</summary> ### [`v9.0.2`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/9.0.2) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/9.0.1...9.0.2) **Changes since 9.0.1** **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "9.0.2") ``` **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("@​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.0.2/rules_java-9.0.2.tar.gz", ], sha256 = "baf2e93c8190d05e08231fc4b76084f7d85c5d4dc75aa1d2919a3bc4107662cc", ) 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("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() load("@​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 @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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.0.2). </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:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNTkuNCIsInVwZGF0ZWRJblZlciI6IjQxLjE1OS40IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
helly25
pushed a commit
to bazel-contrib/toolchains_llvm
that referenced
this pull request
Nov 5, 2025
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_java](https://redirect.github.com/bazelbuild/rules_java) | http_archive | patch | `9.0.2` -> `9.0.3` | --- ### Release Notes <details> <summary>bazelbuild/rules_java (rules_java)</summary> ### [`v9.0.3`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/9.0.3) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/9.0.2...9.0.3) **Changes since 9.0.2** **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "9.0.3") ``` **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("@​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.0.3/rules_java-9.0.3.tar.gz", ], sha256 = "865b3d334bd0f769587737447410d8042d6a95134cc45be5380805fdbacd7152", ) 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("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() load("@​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 @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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.0.3). </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:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNTkuNCIsInVwZGF0ZWRJblZlciI6IjQxLjE1OS40IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
copybara-service Bot
pushed a commit
to google/bazel-common
that referenced
this pull request
Nov 24, 2025
Bumps the dependencies group with 1 update: [rules_java](https://github.com/bazelbuild/rules_java). Updates `rules_java` from 9.0.0 to 9.0.3 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/bazelbuild/rules_java/releases">rules_java's releases</a>.</em></p> <blockquote> <h2>9.0.3</h2> <p><strong>Changes since 9.0.2</strong></p> <p><strong>MODULE.bazel setup</strong></p> <pre><code>bazel_dep(name = "rules_java", version = "9.0.3") </code></pre> <p><strong>WORKSPACE setup</strong></p> <p>With Bazel 8.0.0 and before 8.3.0, add the following to your file:</p> <pre><code># bazelbuild/bazel#26119 common --repositories_without_autoloads=bazel_features_version,bazel_features_globals </code></pre> <p>In all cases, add the following to your file:</p> <pre><code>load("@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.0.3/rules_java-9.0.3.tar.gz", ], sha256 = "865b3d334bd0f769587737447410d8042d6a95134cc45be5380805fdbacd7152", ) <p>http_archive(<br /> name = "bazel_features",<br /> sha256 = "a660027f5a87f13224ab54b8dc6e191693c554f2692fcca46e8e29ee7dabc43b",<br /> strip_prefix = "bazel_features-1.30.0",<br /> url = "<a href="https://github.com/bazel-contrib/bazel_features/releases/download/v1.30.0/bazel_features-v1.30.0.tar.gz">https://github.com/bazel-contrib/bazel_features/releases/download/v1.30.0/bazel_features-v1.30.0.tar.gz</a>",<br /> )</p> <p>load("<a href="https://github.com/bazel"><code>@bazel</code></a>_features//:deps.bzl", "bazel_features_deps")<br /> bazel_features_deps()</p> <p>load("<a href="https://github.com/rules"><code>@rules</code></a>_java//java:rules_java_deps.bzl", "rules_java_dependencies")<br /> rules_java_dependencies()</p> <h1>note that the following line is what is minimally required from protobuf for the java rules</h1> <h1>consider using the protobuf_deps() public API from <a href="https://github.com/com"><code>@com</code></a>_google_protobuf//:protobuf_deps.bzl</h1> <p>load("<a href="https://github.com/com"><code>@com</code></a>_google_protobuf//bazel/private:proto_bazel_features.bzl", "proto_bazel_features") # buildifier: disable=bzl-visibility<br /> proto_bazel_features(name = "proto_bazel_features")</p> <h1>register toolchains</h1> <p>load("<a href="https://github.com/rules"><code>@rules</code></a>_java//java:repositories.bzl", "rules_java_toolchains")<br /> </tr></table><br /> </code></pre></p> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/bazelbuild/rules_java/commit/8427063e872aa3bddf1d091c3faa129d9395a261"><code>8427063</code></a> Release <code>@rules_java</code> <code>v9.0.3</code></li> <li><a href="https://github.com/bazelbuild/rules_java/commit/9b84026b40dfdba5e57db814dc70793fca0e66cc"><code>9b84026</code></a> Rename target to avoid artifact conflict</li> <li><a href="https://github.com/bazelbuild/rules_java/commit/56177d044e0d4e193c14549dd1d0c0c0c78f3f01"><code>56177d0</code></a> Release <code>@rules_java</code> <code>v9.0.2</code></li> <li><a href="https://github.com/bazelbuild/rules_java/commit/a27c7de6503387a5d3675d373979c40621413552"><code>a27c7de</code></a> Cut the dependency on ijar when not stripping the bootclasspath</li> <li><a href="https://github.com/bazelbuild/rules_java/commit/67e83ef06b854fef89cec3a96c158afd99456055"><code>67e83ef</code></a> Release <code>@rules_java</code> <code>v9.0.1</code></li> <li><a href="https://github.com/bazelbuild/rules_java/commit/b1376ddb00e54b7c381c43fc74dc7c269cb8d057"><code>b1376dd</code></a> Add support for an unstripped bootclasspath</li> <li>See full diff in <a href="https://github.com/bazelbuild/rules_java/compare/9.0.0...9.0.3">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Fixes #238 COPYBARA_INTEGRATE_REVIEW=#238 from google:dependabot/bazel/dependencies-f5dc604b06 f1c4797 PiperOrigin-RevId: 836190065
renovate Bot
added a commit
to mattnworb/bazel-java-example
that referenced
this pull request
Dec 1, 2025
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_java](https://redirect.github.com/bazelbuild/rules_java) | bazel_dep | minor | `9.0.3` -> `9.1.0` | --- ### Release Notes <details> <summary>bazelbuild/rules_java (rules_java)</summary> ### [`v9.1.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/9.1.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/9.0.3...9.1.0) **Changes since 9.0.3** [`b685658`](https://redirect.github.com/bazelbuild/rules_java/commit/b6856588ba834750a1e66b2dd1b274a1f09f66a5) Release `rules_java` `v9.1.0` [`4f806ff`](https://redirect.github.com/bazelbuild/rules_java/commit/4f806ff8d9b30a7d7dcaf501205b340dba62c74c) Avoid quadratic time on string concatenation in \_get\_native\_deps\_helper. [`4a9881b`](https://redirect.github.com/bazelbuild/rules_java/commit/4a9881b8fd0c61dca10eef559d5d7b9a1940156f) remove Bazel 6 branch ([#​337](https://redirect.github.com/bazelbuild/rules_java/issues/337)) [`ad7f833`](https://redirect.github.com/bazelbuild/rules_java/commit/ad7f833dddb5fd7f62ccfbb19b9603a1b4429f4b) Cleanup unused Bazel 6 test filtering [`b5b4100`](https://redirect.github.com/bazelbuild/rules_java/commit/b5b4100314da5732854f8c72d0e1c1b2902100ab) Prepare to remove \_LEGACY\_ANY\_TYPE\_ATTRS workaround in java\_toolchain [`b55339e`](https://redirect.github.com/bazelbuild/rules_java/commit/b55339e359675d03a4f1cc001f1840d0b27966df) Drop support for Bazel 6 [`e515e2d`](https://redirect.github.com/bazelbuild/rules_java/commit/e515e2df8deda5dac0deb419cd46eafc9e224d3c) Fix typo in `java_binary.bzl` comment. [`37b099c`](https://redirect.github.com/bazelbuild/rules_java/commit/37b099cfd27de53495aea44763a16cd23ff929df) Refactor java\_single\_jar to allow custom output names. [`1993657`](https://redirect.github.com/bazelbuild/rules_java/commit/19936576119852560c1bd21bcd29a0ae1d629cbc) Enable C++ rules and providers [`d4159a2`](https://redirect.github.com/bazelbuild/rules_java/commit/d4159a222e9ac0635aa3b2b39d1f0ab655846344) Fix bazel version check in `local_java_repository.bzl` [`6ea00a4`](https://redirect.github.com/bazelbuild/rules_java/commit/6ea00a46a9e5498d748d6ae843c87e21c9e8b1d9) Internal change **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "9.1.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("@​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.1.0/rules_java-9.1.0.tar.gz", ], sha256 = "4e1a28a25c2efa53500c928d22ceffbc505dd95b335a2d025836a293b592212f", ) 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("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() load("@​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 @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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.1.0). </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **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/mattnworb/bazel-java-example). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xOS45IiwidXBkYXRlZEluVmVyIjoiNDIuMTkuOSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
fmeum
pushed a commit
to bazel-contrib/toolchains_llvm
that referenced
this pull request
Dec 1, 2025
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_java](https://redirect.github.com/bazelbuild/rules_java) | http_archive | minor | `9.0.3` -> `9.1.0` | --- ### Release Notes <details> <summary>bazelbuild/rules_java (rules_java)</summary> ### [`v9.1.0`](https://redirect.github.com/bazelbuild/rules_java/releases/tag/9.1.0) [Compare Source](https://redirect.github.com/bazelbuild/rules_java/compare/9.0.3...9.1.0) **Changes since 9.0.3** [`b685658`](https://redirect.github.com/bazelbuild/rules_java/commit/b6856588ba834750a1e66b2dd1b274a1f09f66a5) Release `rules_java` `v9.1.0` [`4f806ff`](https://redirect.github.com/bazelbuild/rules_java/commit/4f806ff8d9b30a7d7dcaf501205b340dba62c74c) Avoid quadratic time on string concatenation in \_get\_native\_deps\_helper. [`4a9881b`](https://redirect.github.com/bazelbuild/rules_java/commit/4a9881b8fd0c61dca10eef559d5d7b9a1940156f) remove Bazel 6 branch ([#​337](https://redirect.github.com/bazelbuild/rules_java/issues/337)) [`ad7f833`](https://redirect.github.com/bazelbuild/rules_java/commit/ad7f833dddb5fd7f62ccfbb19b9603a1b4429f4b) Cleanup unused Bazel 6 test filtering [`b5b4100`](https://redirect.github.com/bazelbuild/rules_java/commit/b5b4100314da5732854f8c72d0e1c1b2902100ab) Prepare to remove \_LEGACY\_ANY\_TYPE\_ATTRS workaround in java\_toolchain [`b55339e`](https://redirect.github.com/bazelbuild/rules_java/commit/b55339e359675d03a4f1cc001f1840d0b27966df) Drop support for Bazel 6 [`e515e2d`](https://redirect.github.com/bazelbuild/rules_java/commit/e515e2df8deda5dac0deb419cd46eafc9e224d3c) Fix typo in `java_binary.bzl` comment. [`37b099c`](https://redirect.github.com/bazelbuild/rules_java/commit/37b099cfd27de53495aea44763a16cd23ff929df) Refactor java\_single\_jar to allow custom output names. [`1993657`](https://redirect.github.com/bazelbuild/rules_java/commit/19936576119852560c1bd21bcd29a0ae1d629cbc) Enable C++ rules and providers [`d4159a2`](https://redirect.github.com/bazelbuild/rules_java/commit/d4159a222e9ac0635aa3b2b39d1f0ab655846344) Fix bazel version check in `local_java_repository.bzl` [`6ea00a4`](https://redirect.github.com/bazelbuild/rules_java/commit/6ea00a46a9e5498d748d6ae843c87e21c9e8b1d9) Internal change **MODULE.bazel setup** ``` bazel_dep(name = "rules_java", version = "9.1.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("@​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.1.0/rules_java-9.1.0.tar.gz", ], sha256 = "4e1a28a25c2efa53500c928d22ceffbc505dd95b335a2d025836a293b592212f", ) 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("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() load("@​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 @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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.1.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:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xOS45IiwidXBkYXRlZEluVmVyIjoiNDIuMTkuOSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate Bot
added a commit
to mattnworb/bazel-java-example
that referenced
this pull request
Dec 2, 2025
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [rules_java](https://redirect.github.com/bazelbuild/rules_java) | bazel_dep | minor | `9.1.0` -> `9.2.0` | --- ### Release Notes <details> <summary>bazelbuild/rules_java (rules_java)</summary> ### [`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("@​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("@​bazel_features//:deps.bzl", "bazel_features_deps") bazel_features_deps() load("@​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 @​com_google_protobuf//:protobuf_deps.bzl load("@​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("@​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**: Enabled. ♻ **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/mattnworb/bazel-java-example). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xOS45IiwidXBkYXRlZEluVmVyIjoiNDIuMTkuOSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes the case of rules repositories using bazel_features in WORKSPACE mode.