diff options
Diffstat (limited to 'tools/BUILD')
-rw-r--r-- | tools/BUILD | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/BUILD b/tools/BUILD index b80b2bb3ab..a10901982f 100644 --- a/tools/BUILD +++ b/tools/BUILD @@ -5,7 +5,7 @@ load( load("@rules_java//java:defs.bzl", "java_package_configuration") default_java_toolchain( - name = "error_prone_warnings_toolchain", + name = "error_prone_warnings_toolchain_java11", package_configuration = [ ":error_prone", ], @@ -14,6 +14,18 @@ default_java_toolchain( visibility = ["//visibility:public"], ) +default_java_toolchain( + name = "error_prone_warnings_toolchain_java17", + configuration = dict(), + java_runtime = "@bazel_tools//tools/jdk:remotejdk_17", + package_configuration = [ + ":error_prone", + ], + source_version = "17", + target_version = "17", + visibility = ["//visibility:public"], +) + # Error Prone errors enabled by default; see ../.bazelrc for how this is # enabled. This warnings list is originally based on: # https://github.com/bazelbuild/BUILD_file_generator/blob/master/tools/bazel_defs/java.bzl |