Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Nov 4, 2025

This PR contains the following updates:

Package Type Update Change
rules_java bazel_dep major 8.11.0 -> 9.0.0

Release Notes

bazelbuild/rules_java (rules_java)

v9.0.0

Compare Source

Changes since 8.16.1
a27004a Update JDKs to latest patch releases (#​335)
76212e6 Include the srcjar (if there is one) in the _validation output group so blaze will check whether the srcjar file actually exists.
402b184 upgrade java_tools to 17.0 and wire up linux aarch64 prebuilts (#​334)
36264e4 Update zulu JDKs to latest patch release (#​327) (#​328)
7ff9193 Fix test class determination error message (#​326)
1ed307b Increase maxwarns to -1 (#​291)
3257e83 Re-enable ReturnValueIgnored error prone check
6a30ab8 Run the bootclasspath through ijar (#​324)
3cbc18e Update abseil-cpp to remove override (#​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:


### https://github.com/bazelbuild/bazel/pull/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.

v8.16.1

Compare Source

Changes since 8.16.0
39cae30 Update the compilation JDK to 25 (#​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:


##### https://github.com/bazelbuild/bazel/pull/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.

v8.16.0

Compare Source

Changes since 8.15.2
7a625ca Add JDK 25 (#​319)
faaab40 Use @bazel_features for rules_java compatibility proxy
4bd56d5 chore: Support remote_file_urls and remote_file_integrity in extension (#​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:


##### https://github.com/bazelbuild/bazel/pull/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.

v8.15.2

Compare Source

Changes since 8.15.1
52aa53a Add a module extension for registering local/remote jdks (#​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:


##### https://github.com/bazelbuild/bazel/pull/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.

v8.15.1

Compare Source

Changes since 8.15.0
45061b3 Fix Java coverage support on Windows by adding coverage_main_class to launch_info (#​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:


##### https://github.com/bazelbuild/bazel/pull/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.

v8.15.0

Compare Source

Changes since 8.14.0
c0462f0 Update rules_java to 8.15.0 (#​309)
bbb99fa rules_java: Rename CcInfo#transitive_native_libraries to _legacy_transitive_native_libraries
d8246a4 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:


##### https://github.com/bazelbuild/bazel/pull/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.

v8.14.0

Compare Source

Changes since 8.13.0
3b9ca99 Update to java_tools v16.0
0b94d21 Use root test_deps target from bazel_skylib (#​306)
aec334a Migrate from deprecated cc_linking_context.libraries_to_link to cc_linking_context.linker_inputs.libraries
d3f3408 Make C++ toolchain explicitly not mandatory
3daed1a 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:


##### https://github.com/bazelbuild/bazel/pull/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.

v8.13.0

Compare Source

Changes since 8.12.0
d1e335a Release rules_java v8.13.0
c289c72 Update java_tools v15.0
d927aa0 Fix Runfiles docs after #​301 (#​302)
1a2c184 use DefaultInfo in rules_java (#​303)
1947744 Add support for --incompatible_compact_repo_mapping_manifest (#​301)
fecb9fb Remove a reference to incompatible_disallow_java_import_empty_jars after unknown commit
a75e722 In make_non_strict, header_compilation_direct_deps should be the same as compile_jars, not full_compile_jars
ae8a5b2 Initial support for header compilation direct deps
899c2b7 Improve the error message for no matching bootclasspath (#​296)
0af04ab 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:


##### https://github.com/bazelbuild/bazel/pull/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.

v8.12.0

Compare Source

IMPORTANT: Bazel 8 users still using WORKSPACE please note the change in the setup below.

Changes since 8.11.0
808f849 Use the launcher_maker toolchain if available (#​294)
042e9a6 Use @platforms//host instead of @local_config_platform
4ce6ca9 Validate java_common.compile(strict_deps) in Starlark
94426d1 Fix case handling of java_common.compile(strict_deps)
1d2eecd Remove support for empty jars attribute from java_import
86962f9 Change deprecation message to be more helpful for java_proto_library/java_lite_proto_library
9fac3ac Configure coverage helpers for the test exec group (#​292)
4b5e2a9 Fix empty jars check for Bazel java_import
ad510ed Remove usages of --incompatible_disable_non_executable_java_binary
2779574 The test_class of a java_test for JUnit4 does not have to have @RunWith.
bf2fb43 Fix comment
da9eee2 Fix classpath separator when cross-compiling from Windows to Unix (#​290)
bd9c5f8 Change type of output_licenses from attr.license to attr.string_list.
804e93e Update to java_tools v14.0 (#​286)
05ee692 Add ppc64le platform support (#​274)
1b5a8b2 Set use_default_shell_env = True consistently. (#​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:


##### https://github.com/bazelbuild/bazel/pull/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.


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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.


This change is Reviewable

@palfrey
Copy link
Member

palfrey commented Nov 4, 2025

Under the hood, this upgrades abseil-cpp, so we get the same issue as #2017

@palfrey palfrey closed this Nov 4, 2025
auto-merge was automatically disabled November 4, 2025 15:37

Pull request was closed

@renovate
Copy link
Contributor Author

renovate bot commented Nov 4, 2025

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 9.x releases. But if you manually upgrade to 9.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/rules_java-9.x branch November 4, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants