Skip to content

Update dependency rules_java to v9.7.0 - #8402

Merged
LeFrosch merged 1 commit into
bazelbuild:masterfrom
renovate-bot:renovate/rules_java-9.x
Jul 22, 2026
Merged

Update dependency rules_java to v9.7.0#8402
LeFrosch merged 1 commit into
bazelbuild:masterfrom
renovate-bot:renovate/rules_java-9.x

Conversation

@renovate-bot

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
rules_java bazel_dep minor 9.6.19.7.0

Release Notes

bazelbuild/rules_java (rules_java)

v9.7.0

Compare Source

Changes since 9.6.1
899c551 Upgrade default JDK to 25.
e06bb23 Return repo_metadata from repository_rules (#​367)
35e8391 Do not percent-encode '+' in classpath-jar manifest Class-Path entries (#​358)
2f57464 Simplify toolchain config for linux (#​357)
c54e911 Create a java_common.compile_header API that just does the header compilation part of java_common.compile
e1c82d4 Internal Change
7b13ead Support disable_lint_checks in java_library
2399899 Internal change
8c82b7f No public description
0508ac3 Support embedding stamping info from bazel in java_single_jar
421776c Attempt to fix missing class error by not using tree artifacts for bootclasspath (#​340)
ec317b1 Remove java_common.add_constraints

MODULE.bazel setup

bazel_dep(name = "rules_java", version = "9.7.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.7.0/rules_java-9.7.0.tar.gz",
    ],
    sha256 = "68794ca344c1caf13dca65f90c06660823013fa080931266e2625103904a664e",
)

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.

Full Changelog: bazelbuild/rules_java@9.6.1...9.7.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.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the version of the rules_java dependency from 9.6.1 to 9.7.0 in the MODULE.bazel file. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@renovate-bot
renovate-bot force-pushed the renovate/rules_java-9.x branch from b57533b to ec800db Compare July 17, 2026 09:13
@LeFrosch
LeFrosch merged commit 60626c2 into bazelbuild:master Jul 22, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from Untriaged to Done in Bazel IntelliJ Plugin Jul 22, 2026
@github-actions github-actions Bot removed the awaiting-review Awaiting review from Bazel team on PRs label Jul 22, 2026
@renovate-bot
renovate-bot deleted the renovate/rules_java-9.x branch July 22, 2026 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants