rules_java not respecting --tool_java_language_version/--tool_java_runtime_version for test_jar's as of at least 7.1.0 #165
Labels
P2
We'll consider to work on this in future. (Assignee optional)
When upgrading to Bazel 7.0.0, which upgraded my version of rules_java to 7.1.0, I have found that when building a test jar it has upgraded to using Java 21 despite passing the following in my .bazelrc file:
When building I can see that Java 21 is being used to compile the test jar in the error output with the path to java being
external/remotejdk21_macos_aarch64/bin/java
. I would expect this path to be a Java 11 JDK with the above options in the .bazelrc.I have also tried upgrading to rules_java 7.3.2 and that also fails with the same issue.
The text was updated successfully, but these errors were encountered: