Skip to content

Update dependency rules_java to v10 - #111

Merged
snape merged 1 commit into
mainfrom
renovate/rules_java-10.x
Dec 5, 2026
Merged

snape merged 1 commit into
mainfrom
renovate/rules_java-10.x

Conversation

@renovate

@renovate renovate Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
rules_java bazel_dep major 9.9.0 → 10.0.0

Release Notes

bazelbuild/rules_java (rules_java)

v10.0.0

Compare Source

Note: This is a major version release and as such contains breaking/incompatible changes. Notable ones are highlighted in the changelog below.

Changes since 9.9.0
331a085 Use the prebuilt proguard_allowlister in the default Java toolchain (#​403)
9890169 INCOMPATIBLE Remove error prone check disabling flags from default javacopts
f39d03d Construct java_common with explicit fields (#​388)
6a34228 Expose the remote JDK legal/ directory as a jdk-legal filegroup (#​393)
6c96e6b Support toolchain-driven unused dependencies checking (Starlark changes) (#​359)
6bc5efa Update remote Zulu JDKs to the 2026-11-17 out-of-band releases (CVE-2026-114938) (#​396)
aed70e9 INCOMPATIBLE Update java_tools to v23.0 (EP and JSR305 deps no longer leak from test runner)
d17ef65 Remove unused coverage template substitutions and JACOCO_IS_JAR_WRAPPED from java_stub_template.txt
db16d78 Define the Java toolchain types in rules_java (#​392)
faf28bb Add android_lint_runner_opts attribute to java_toolchain
15513c8 Track transitive neverlink jars in JavaInfo.
22dd431 INCOMPATIBLE Remove _LEGACY_ANY_TYPE_ATTRS workaround in java_toolchain.
967e1d5 Use %{output} placeholder in JavaSingleJar and JavaDeployJar progress messages.
62240f5 INCOMPATIBLE Flip --@rules_java//toolchains:incompatible_language_version_bootclasspath to True
b873bad Update remote JDKs to latest patch releases (#​391)
e37651b Fix bootstrap runtime version selection
500d0a7 Add java_path, java_root, and full_classname to java_helper
ceb99dc Handle third_party/java/ nested source roots in _java_segments
b312122 Add android_lint_tools to java_toolchain for AndroidLint action tools.
b74de71 Update java_tools to v22.0
b63c8a1 INCOMPATIBLE Drop support for Bazel 7
2265f22 Starlarkify collect_native_deps_dirs
f0d277a Drop compatibility_level from rules_java
fa3e5ac INCOMPATIBLE Drop deprecated aliases from defs.bzl
92e1079 INCOMPATIBLE Fix native library path separator on Windows (#​383)
c796cef INCOMPATIBLE Support multiple test sources, test_classes, and non_test_srcs in java_test
e85d512 Add jni_md_header for NetBSD (#​381)
4206909 Enable path mapping for java_single_jar.
7422b05 Enable path mapping for JavaDeployJar
0a9737f Propagate .jdeps for java_import (#​363)
54439b9 Fix java_single_jar to propagate full transitive classpath and use shell param file format
8f847aa Allow java_binary to exclude build metadata (#​376)

MODULE.bazel setup

bazel_dep(name = "rules_java", version = "10.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/10.0.0/rules_java-10.0.0.tar.gz",
    ],
    sha256 = "56715b8d2f95edb4299d6821bf9059e4a2796733ce8d4e6e8c40c704bd5437e2",
)

http_archive(
    name = "bazel_features",
    sha256 = "2ed1fdce7e51ba2149dfab73eab6e402217c8e27d17e1d4a48d4d86bdd9eaef6",
    strip_prefix = "bazel_features-1.55.0",
    url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.55.0/bazel_features-v1.55.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.

Full Changelog: bazelbuild/rules_java@9.9.0...10.0.0


Configuration

📅 Schedule: (UTC)

  • 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 becomes conflicted, 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.

@renovate
renovate Bot requested a review from snape as a code owner December 3, 2026 12:49
@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

Ask an organization administrator to verify that this bot has an active assigned CodeRabbit review seat. See the seat-assignment guide. After the seat is confirmed, request a review again.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 19a06d21-4280-4682-9257-55fedf9ce861

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@renovate
renovate Bot force-pushed the renovate/rules_java-10.x branch from 1702e64 to f9c3ff0 Compare December 4, 2026 03:14
@renovate
renovate Bot force-pushed the renovate/rules_java-10.x branch from f9c3ff0 to 8e8f5c1 Compare December 4, 2026 04:06
@snape
snape merged commit ea4bc3e into main Dec 5, 2026
37 checks passed
@renovate
renovate Bot deleted the renovate/rules_java-10.x branch December 5, 2026 02:35
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.

1 participant