| commit | 76212e60692337b1bb10afa98a8163279fe99e17 | [log] [tgz] |
|---|---|---|
| author | Liz Looney <lizlooney@google.com> | Wed Oct 22 17:31:32 2025 -0700 |
| committer | rules_java Copybara <noreply@google.com> | Wed Oct 22 17:32:02 2025 -0700 |
| tree | 0f975c333101afad863ebe64c412ad783bc6ec41 | |
| parent | 402b1842d6e17e265c0b5c488f79edd851a202c2 [diff] |
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