Drop `--experimental_google_legacy_api` in `rules_java`

Update to Bazel 7.4.0 on CI

PiperOrigin-RevId: 690972550
Change-Id: I6f5fcac68484afea4209d7145cedab2b26c0e201
diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml
index a485446..599b5f9 100644
--- a/.bazelci/presubmit.yml
+++ b/.bazelci/presubmit.yml
@@ -29,12 +29,12 @@
 # Bazel 7.x
   ubuntu2004:
     name: "Bazel 7.x"
-    bazel: "7.3.2"
+    bazel: "7.4.0"
     build_targets: *build_targets
     test_targets: *test_targets
   ubuntu2004_integration:
     name: "Bazel 7.x Integration"
-    bazel: "7.3.2"
+    bazel: "7.4.0"
     platform: ubuntu2004
     working_directory: "test/repo"
     shell_commands:
@@ -45,11 +45,11 @@
       - "@rules_java//java/..."
   macos:
     name: "Bazel 7.x"
-    bazel: "7.3.2"
+    bazel: "7.4.0"
     build_targets: *build_targets
   windows:
     name: "Bazel 7.x"
-    bazel: "7.3.2"
+    bazel: "7.4.0"
     build_targets: *build_targets
 # Bazel@HEAD
   ubuntu2004_head:
diff --git a/.bazelrc b/.bazelrc
index 03c4777..b55a2af 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -1,5 +1,2 @@
 common --incompatible_disallow_empty_glob
 common --experimental_rule_extension_api
-
-# TODO: remove once https://github.com/bazelbuild/bazel/commit/384e381fa841537987691f170ed9408dcfeed2ea is available
-common --experimental_google_legacy_api
diff --git a/test/repo/.bazelrc b/test/repo/.bazelrc
index 1146197..0a78015 100644
--- a/test/repo/.bazelrc
+++ b/test/repo/.bazelrc
@@ -2,6 +2,3 @@
 
 common --incompatible_disallow_empty_glob
 common --experimental_rule_extension_api
-
-# TODO: remove once https://github.com/bazelbuild/bazel/commit/384e381fa841537987691f170ed9408dcfeed2ea is available
-common --experimental_google_legacy_api