Skip to content

Commit ed3bcf2

Browse files
katrecopybara-github
authored andcommitted
Update Java rules to use the toolchain transition.
This is phase 2 of of the switch to toolchain transitions. See #11584 for details. Downstream Bazel tests: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/1692 PiperOrigin-RevId: 338302806
1 parent 2599302 commit ed3bcf2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/jdk/java_toolchain_alias.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ java_toolchain_alias = rule(
9292
default = Label("@bazel_tools//tools/jdk:legacy_current_java_toolchain"),
9393
),
9494
},
95+
incompatible_use_toolchain_transition = True,
9596
)
9697

9798
# Add aliases for the legacy native rules to allow referring to both versions in @bazel_tools//tools/jdk

0 commit comments

Comments
 (0)