Include the srcjar (if there is one) in the _validation output group so blaze will check whether the srcjar file actually exists. RELNOTES: If a java_import target's srcjar attribute refers to a source file, the file should exist. PiperOrigin-RevId: 822801332 Change-Id: Ie5b364aa873a07b4cda6d528f1a1d69bdb5b9089
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