Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion toolchains/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ RELEASES = (8, 9, 10, 11, 17, 21, 25)
[
default_java_toolchain(
name = ("toolchain_java%d" if release <= 11 else "toolchain_jdk_%d") % release,
configuration = DEFAULT_TOOLCHAIN_CONFIGURATION if release <= 21 else DEFAULT_TOOLCHAIN_CONFIGURATION | {"java_runtime": ":remotejdk_%d" % release},
configuration = DEFAULT_TOOLCHAIN_CONFIGURATION | {"java_runtime": ":remotejdk_25"},
source_version = "%s" % release,
target_version = "%s" % release,
)
Expand Down
2 changes: 2 additions & 0 deletions toolchains/default_java_toolchain.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ _BASE_TOOLCHAIN_CONFIGURATION = dict(
reduced_classpath_incompatible_processors = [
"dagger.hilt.processor.internal.root.RootProcessor", # see b/21307381
],
# TODO: Update to JDK 25 after some time has passed - it no longer supports
# targeting JDK 7.
java_runtime = Label("//toolchains:remotejdk_21"),
oneversion = Label("//toolchains:one_version"),
)
Expand Down