Use `target_compatible_with` for Java runtimes The JDK is a runtime. Actions like `java_binary` output an executable that contains a JDK in its runfiles, and that JDK needs to be compatible with the target platform. (Actions like `genrule` that execute the JDK can depend on the JDK as a `tool`, which does an explicit transition to the `exec` platform.) PiperOrigin-RevId: 426995073 Change-Id: I97ab530c56047b780b1a2170937ddf162660840b
Java Rules for Bazel https://bazel.build.