Read java versions for uploading java_tools from BUILD file
Read java versions for uploading java_tools from BUILD file

This avoids having to keep the version list in sync manually.
Currently, the script fails since there are not test targets matching versions 15,16 after https://github.com/bazelbuild/bazel/pull/14573

PiperOrigin-RevId: 440855181

katre/bazel,bazelbuild/bazel,katre/bazel,cushon/bazel,cushon/bazel,cushon/bazel,bazelbuild/bazel,bazelbuild/bazel,katre/bazel,bazelbuild/bazel,cushon/bazel,cushon/bazel,cushon/bazel,bazelbuild/bazel,katre/bazel,bazelbuild/bazel,katre/bazel,katre/bazel