Add a java binary, a java library, and an android app target building to bp2build ci.
(Second attempt at https://android-review.googlesource.com/c/platform/build/bazel/+/1788469)

Adding the --fat_apk_cpu=k8 flag to common.bazelrc as it only applies to android app building rules, and it is currently required to successfully build them.
Forcing the use of the checked in Java JDK to avoid falling back to the local machine's JDK.
This may be overkill, but I wrote a small doc to justify the new approach of setting JAVA_HOME in bazel.sh: go/aosp-bazel-jdk

Test: b build examples/java/...; b build examples/android_app/...; lunch; b build examples/java/...; b build examples/android_app/...
Change-Id: I9ce3886a3e6f1eec903de52493251ec3c5fa7681
6 files changed
tree: eee8a7a843c52f7b1b161fa53c953aaa16ee156c
  1. ci/
  2. docs/
  3. examples/
  4. json_module_graph/
  5. platforms/
  6. product_variables/
  7. rules/
  8. rules_cc/
  9. scripts/
  10. tests/
  11. bazel.BUILD
  12. bazel.sh
  13. bazel.WORKSPACE
  14. common.bazelrc
  15. darwin.bazelrc
  16. linux.bazelrc
  17. OWNERS
  18. README.md
README.md

Bazel

The code in this directory is experimental. Bazel support for Android Platform is undergoing active development and workflow stability is currently not guaranteed.