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