Bazel: Switch to using toolchain resolution for java rules Bump Bazel version to release 5.0.0. In this new Bazel release, --incompatible_use_toolchain_resolution_for_java_rules is flipped, that means that the build must be adapted to toolchain resolution. Given that new Bazel release also added support for remote JDK 17, add support for building with remote JDK 17 to produce major byte code version 61. Change-Id: I5bc5f640bcd43529f799a8df01ad4a496f0394d3
diff --git a/WORKSPACE b/WORKSPACE index 1753885..b3e0d3f 100644 --- a/WORKSPACE +++ b/WORKSPACE
@@ -27,6 +27,10 @@ path = "modules/jgit", ) +register_toolchains("//tools:error_prone_warnings_toolchain_java11_definition") + +register_toolchains("//tools:error_prone_warnings_toolchain_java17_definition") + maven_jar( name = "commons-lang3", artifact = "org.apache.commons:commons-lang3:3.8.1",