Drop support for Bazel 6 Bazel 6.5.0 is EOL in Dec 2025 (https://bazel.build/release#support-matrix) Also bump other supported bazel versions to their latest minor/patch in CI PiperOrigin-RevId: 837025814 Change-Id: If9ea408f3f1df8e47279453d1bca2db9fefeb57e
diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index 3a60303..4fe6a43 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml
@@ -14,15 +14,6 @@ - "-//java/docs/..." - "-//test:docs_up_to_date_test" -build_targets_bazel6: &build_targets_bazel6 - - "//:all" - # build java_tools from source - - "@remote_java_tools//:ijar_cc_binary" - - "@remote_java_tools//:one_version_cc_bin" - - "@remote_java_tools//:proguard" - - "@remote_java_tools//:singlejar_cc_bin" - - "//examples/..." - build_targets_integration: &build_targets_integration - "//..." - "//:bin_deploy.jar" @@ -32,10 +23,6 @@ # TODO: re-enable docs after moving them out of https://bazel.build/reference/be/java - "-//test:docs_up_to_date_test" -test_targets_bazel6: &test_targets_bazel6 - - "//test/java/..." - - "-//test/java/private/..." - test_target_integration: &test_target_integration - "//:MyTest" @@ -47,7 +34,7 @@ matrix: all_platforms: ["rockylinux8_arm64", "ubuntu2004", "macos", "macos_arm64", "windows"] - bazel: ["7.6.1", "8.4.0", "last_green"] # Bazel 6 tested separately, needs different flags + bazel: ["7.7.1", "8.4.2", "last_green"] modern_bazel: ["last_green", "rolling"] # Fully supported Bazel versions tasks: @@ -60,8 +47,8 @@ test_targets: *test_targets # Bazel 8.x build_and_test_bazel8: - name: "Bazel 8.4.0" - bazel: "8.4.0" + name: "Bazel 8.4.2" + bazel: "8.4.2" platform: ${{ all_platforms }} build_targets: *build_targets test_targets: *test_targets @@ -69,33 +56,13 @@ - "--test_tag_filters=-min_bazel_9" # Bazel 7.x build_and_test_bazel7: - name: "Bazel 7.6.1" - bazel: "7.6.1" + name: "Bazel 7.7.1" + bazel: "7.7.1" platform: ${{ all_platforms }} build_targets: *build_targets test_targets: *test_targets test_flags: - "--test_tag_filters=-min_bazel_8,-min_bazel_9" -# Bazel 6.x - build_and_test_bazel6: - name: "Bazel 6.5.0" - bazel: 6.5.0 - platform: ${{ all_platforms }} - build_targets: *build_targets_bazel6 - test_targets: *test_targets_bazel6 - test_flags: - - "--test_tag_filters=-min_bazel_7,-min_bazel_8,-min_bazel_9" - ubuntu2004_integration_bazel6: - name: "Integration w/ Bazel 6.5.0" - bazel: 6.5.0 - platform: ${{ all_platforms }} - working_directory: "test/repo" - shell_commands: - - sh setup.sh - batch_commands: - - setup.bat - build_targets: *build_targets_integration - test_targets: *test_target_integration # Integration tests integration_build_and_test:
diff --git a/MODULE.bazel b/MODULE.bazel index 0de3d56..8c2a672 100644 --- a/MODULE.bazel +++ b/MODULE.bazel
@@ -1,7 +1,7 @@ module( name = "rules_java", version = "9.0.3", - bazel_compatibility = [">=6.4.0"], + bazel_compatibility = [">=7.0.0"], compatibility_level = 1, )