Skip to content

Update dependency rules_java to v8.12.0 #414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2025
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 23, 2025

This PR contains the following updates:

Package Type Update Change
rules_java bazel_dep minor 8.11.0 -> 8.12.0

Release Notes

bazelbuild/rules_java (rules_java)

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.


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

View the repository job log

@github-actions github-actions bot added dependencies Pull requests that update a dependency file lang-java Java rules specific lang-scala Scala rules specific labels May 23, 2025
@aaliddell aaliddell merged commit 1d257ce into master May 23, 2025
1 of 4 checks passed
@renovate renovate bot deleted the renovate/rules_java-8.x branch May 23, 2025 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file lang-java Java rules specific lang-scala Scala rules specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant