diff --git a/MODULE.bazel b/MODULE.bazel index 52623e4a4acd85..beaff95d59e5af 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -16,7 +16,7 @@ bazel_dep(name = "stardoc", version = "0.5.3", repo_name = "io_bazel_skydoc") bazel_dep(name = "zstd-jni", version = "1.5.2-3") bazel_dep(name = "zlib", version = "1.2.13") bazel_dep(name = "rules_cc", version = "0.0.6") -bazel_dep(name = "rules_java", version = "6.1.1") +bazel_dep(name = "rules_java", version = "6.2.2") bazel_dep(name = "rules_proto", version = "5.3.0-21.7") bazel_dep(name = "rules_jvm_external", version = "5.2") bazel_dep(name = "rules_python", version = "0.19.0") @@ -28,12 +28,6 @@ single_version_override( patches = ["//third_party:rules_jvm_external_5.2.patch"], ) -single_version_override( - module_name = "rules_java", - patch_strip = 1, - patches = ["//third_party:rules_java_6.1.0.patch"], -) - maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") maven.install( # We don't yet specify the maven coordinates in the MODULE.bazel to avoid duplicating information. diff --git a/distdir_deps.bzl b/distdir_deps.bzl index 45f8248a697f00..ff882354f0eb4f 100644 --- a/distdir_deps.bzl +++ b/distdir_deps.bzl @@ -67,11 +67,9 @@ DIST_DEPS = { "rules_java_builtin", "rules_java_builtin_for_testing", ], - "archive": "rules_java-6.1.1.tar.gz", - "sha256": "76402a50ae6859d50bd7aed8c1b8ef09dae5c1035bb3ca7d276f7f3ce659818a", - "urls": ["https://github.com/bazelbuild/rules_java/releases/download/6.1.1/rules_java-6.1.1.tar.gz"], - "patches": ["//third_party:rules_java_6.1.0.patch"], - "patch_args": ["-p1"], + "archive": "rules_java-6.2.2.tar.gz", + "sha256": "847527aa7f74712e0a63af2670ba3ddc04e8ea3d8930a7947c17aebfb29d5294", + "urls": ["https://github.com/bazelbuild/rules_java/releases/download/6.2.2/rules_java-6.2.2.tar.gz"], "workspace_file_content": "", "used_in": [ "additional_distfiles", diff --git a/src/MODULE.tools b/src/MODULE.tools index 593e6216211a0c..8f1a3fdd2ed156 100644 --- a/src/MODULE.tools +++ b/src/MODULE.tools @@ -1,7 +1,7 @@ module(name = "bazel_tools") bazel_dep(name = "rules_cc", version = "0.0.6") -bazel_dep(name = "rules_java", version = "6.1.1") +bazel_dep(name = "rules_java", version = "6.2.2") bazel_dep(name = "rules_license", version = "0.0.3") bazel_dep(name = "rules_proto", version = "4.0.0") bazel_dep(name = "rules_python", version = "0.4.0") diff --git a/third_party/rules_java_6.1.0.patch b/third_party/rules_java_6.1.0.patch deleted file mode 100644 index cab394f7f9fdbe..00000000000000 --- a/third_party/rules_java_6.1.0.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/BUILD b/BUILD -index 9840747..c138b7f 100644 ---- a/BUILD -+++ b/BUILD -@@ -12,8 +12,9 @@ filegroup( - "BUILD", - "LICENSE", - "MODULE.bazel", -+ "WORKSPACE", - "//java:srcs", - "//toolchains:srcs", - ], -- visibility = ["//distro:__pkg__"], -+ visibility = ["//visibility:public"], - )