Check local version detection result

Copybara Import from https://github.com/bazelbuild/rules_java/pull/171

BEGIN_PUBLIC
Check local version detection result (#171)

In case the local Java version detection fails, e.g. due to a corrupt installation, skip further processing, as it results in a type error.

Closes #170

Closes #171
END_PUBLIC

COPYBARA_INTEGRATE_REVIEW=https://github.com/bazelbuild/rules_java/pull/171 from bertschneider:fix_local_version_detection 6943c45156edcd521aec87b5080c3cfc8c40f1e5
PiperOrigin-RevId: 607694805
Change-Id: Ib8005f6d40e15034f168121cdee8cebcc4a029f2
1 file changed
tree: 1fdb0a9653e93b3bc65881980ceded029f54aabb
  1. .bazel_checkout/
  2. .bazelci/
  3. .bcr/
  4. .github/
  5. distro/
  6. examples/
  7. java/
  8. toolchains/
  9. .bazelrc
  10. .bazelversion
  11. .gitignore
  12. AUTHORS
  13. BUILD
  14. CODEOWNERS
  15. CONTRIBUTING.md
  16. LICENSE
  17. MODULE.bazel
  18. README.md
  19. renovate.json
  20. WORKSPACE
  21. WORKSPACE.bzlmod
README.md

rules_java

  • Postsubmit Build status
  • Postsubmit + Current Bazel Incompatible Flags Build status

Java Rules for Bazel https://bazel.build.