commit 980a8f0d1b1a0fcce145c0438bf90ad325f4f229 Author: Luca Milanesio Date: Tue Oct 6 13:44:22 2020 +0100 Use java language level to Java 11 for running tests Following the Change-Id: I79434c657 use the same Java 11 tool_chain for running tests as well. With this change, it isn't required to have any local Java 11 setups for being able to build and run tests using Bazel. Running Gerrit E2E tests would still require to have a local Java 11 JDK setup. Change-Id: I46fdbc2032084538be676a81b26bcd0f1d436a6b diff --git a/.bazelrc b/.bazelrc index 9f13f70..b9189c1 100644 --- a/.bazelrc +++ b/.bazelrc @@ -13,5 +13,6 @@ build --incompatible_strict_action_env test --build_tests_only test --test_output=errors +test --java_toolchain=//tools:error_prone_warnings_toolchain_java11 import %workspace%/tools/remote-bazelrc