Fix empty jars check for Bazel java_import The check was initially added in https://github.com/bazelbuild/bazel/commit/1acda6be4ffc197f0a19a54556a4a3f8eb4b4906 [^1], but inadvertently made a no-op in https://github.com/bazelbuild/bazel/commit/67d3bca6b63db3c4d37c5204aef3cf49e84606ea [^2] which made it so that it would only take effect only if the rule class defined an allowlist (which the Bazel version never did). PiperOrigin-RevId: 754891782 Change-Id: I692dc94865a5aa04f9b5189efc1cbe86e636bfa2
Java Rules for Bazel https://bazel.build.
Documentation
For a quickstart tutorial, see https://bazel.build/start/java
For slightly more advanced usage, like setting up toolchains or writing your own java-like rules, see https://bazel.build/docs/bazel-and-java
Core Java rules
Add a load like:
load("@rules_java//java:java_library.bzl", "java_library")
to your BUILD / BUILD.bazel / bzl` files
For detailed docs on the core rules, see https://bazel.build/reference/be/java