Add testing for java_tools that embed javac12.
* Add a new java version (12) to all targets used to generate the java_tools zip release and to all java integration tests
* Add a new test for new java 12 features
`java_tools-javac12-v1.0` was released in https://github.com/bazelbuild/java_tools/issues/9.
This change doesn't upgrade the default value in Bazel to javac 12.
Closes #8534.
PiperOrigin-RevId: 252822845
diff --git a/src/upload_all_java_tools.sh b/src/upload_all_java_tools.sh
index 6955b16..dbf859c 100755
--- a/src/upload_all_java_tools.sh
+++ b/src/upload_all_java_tools.sh
@@ -48,7 +48,7 @@
# Passing the same commit_hash and timestamp to all targets to mark all the artifacts
# uploaded on GCS with the same identifier.
-for java_version in 9 10 11; do
+for java_version in 9 10 11 12; do
bazel build //src:java_tools_java${java_version}_zip
zip_path=${PWD}/bazel-bin/src/java_tools_java${java_version}.zip