Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Feb 9, 2026

This PR contains the following updates:

Package Type Update Change
rules_java bazel_dep minor 9.3.09.4.1

Release Notes

bazelbuild/rules_java (rules_java)

v9.4.1

Compare Source

Changes since 9.4.0
aade08e Release @rules_java v9.4.1
7e5a90c Fix bzl_library graph for java_single_jar
f70e126 Run @rules_java extra tests only with the latest Bazel release

MODULE.bazel setup

bazel_dep(name = "rules_java", version = "9.4.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/9.4.1/rules_java-9.4.1.tar.gz",
    ],
    sha256 = "20cdc3d01cff553aa08e9a95af6d8f81fdd8e3b879a4fd294ddcb163d98dbeb8",
)

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.

v9.4.0

Compare Source

Changes since 9.3.0
7eb8b69 Release @rules_java v9.4.0
4566a5d Fix java_single_jar compatibility with Bazel 7
bef4f98 Add testing for Bazel 9 to @rules_java CI
d2d7258 Add remote JDK 25 for riscv64, ppc64le and s390x (#​347)
ad1b9c8 upgrade jdk25 to 25.0.2 (#​349)
1824a55 Add --sun-misc-unsafe-memory-access=allow to JavaBuilder's jvm flags
7372e8c chore(docs): add quickstart template link to README (#​344)
243a1d4 Fix a .jar file in java_import.runtime_deps
e910554 Fix @rules_java CI after https://github.com/bazelbuild/buildtools/releases/tag/v8.5.1
e0bcbba Fix javacopts make variable expansion regression (#​346)
624b208 avoid loading from defs.bzl (#​341)
aa0345c Instruct java_binary not to compress protobuf.meta.
59e9cb5 Automatic code cleanup.

MODULE.bazel setup

bazel_dep(name = "rules_java", version = "9.4.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.4.0/rules_java-9.4.0.tar.gz",
    ],
    sha256 = "f1c2526c8011f5082c9080f617799d6fbbf9fbe18ab132d09f561be6d543ea49",
)

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.


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 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 February 9, 2026 14:56
@renovate renovate bot changed the title Update dependency rules_java to v9.4.0 Update dependency rules_java to v9.4.1 Feb 10, 2026
@renovate renovate bot force-pushed the renovate/rules_java-9.x branch from fd9d7d4 to 74d47c9 Compare February 10, 2026 13:03
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.

0 participants