Alias ijar_cc_binary and singlejar_cc_bin to prebuilts in java tools am: 133a600c82 am: 138067d91d am: 3789562e8f am: baa93d1c0b

Original change: https://android-review.googlesource.com/c/platform/prebuilts/bazel/common/+/2532599

Change-Id: I064c7f7f40b5c6a267ce1974520944b005dcee85
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/remote_java_tools/BUILD b/remote_java_tools/BUILD
index 87b3cb7..fb06e2c 100644
--- a/remote_java_tools/BUILD
+++ b/remote_java_tools/BUILD
@@ -52,3 +52,21 @@
     visibility = ["//visibility:public"],
     runtime_deps = [":proguard_import"],
 )
+
+# The java tools contain sources for the below targets, which are a
+# fallback when a prebuilt is not available on a given platform. We
+# don't currently need these, but the below aliases let
+# @bazel_tools//tools/jdk:ijar_prebuilt_binary_or_cc_binary and
+# @bazel_tools//tools/jdk:singlejar_prebuilt_or_cc_binary resolve
+# under any condition, which in turn enables bazel queries on targets
+# that depend on them (e.g. default java toolchains).
+
+alias(
+    name = "ijar_cc_binary",
+    actual = "@remote_java_tools_linux//:ijar_prebuilt_binary",
+)
+
+alias(
+    name = "singlejar_cc_bin",
+    actual = "@remote_java_tools_linux//:prebuilt_singlejar",
+)