| commit | 0b94d21938932eab2367fdca443b1f8a5196f7ae | [log] [tgz] |
|---|---|---|
| author | Yun Peng <pcloudy@google.com> | Tue Jul 08 02:58:57 2025 -0700 |
| committer | rules_java Copybara <noreply@google.com> | Tue Jul 08 02:59:49 2025 -0700 |
| tree | 0b631471970f265271c36f7a116e330bb636f930 | |
| parent | aec334a90360d4a3213d70810199679f53fa663c [diff] |
Use root test_deps target from bazel_skylib (#306) Fixing ``` $ bazel build //src/test/java/com/google/devtools/build/lib/query2/cquery:FilesOutputFormatterCallbackTest ... ERROR: /private/var/tmp/_bazel_pcloudy/829441223e9fec5a5a2e3d1dd743fdf0/external/rules_java+/java/BUILD:78:10: in filegroup rule @@rules_java+//java:for_bazel_tests: Visibility error: target '@@bazel_skylib+//lib:test_deps' is not visible from target '@@rules_java+//java:for_bazel_tests' Recommendation: modify the visibility declaration if you think the dependency is legitimate. For more info see https://bazel.build/concepts/visibility ``` after upgrading bazel_skylib which contains https://github.com/bazelbuild/bazel-skylib/pull/508 Closes #306 COPYBARA_INTEGRATE_REVIEW=https://github.com/bazelbuild/rules_java/pull/306 from bazelbuild:meteorcloudy-patch-1 a0df97cd25f9784da04f55ac037eee4ae0fa777c PiperOrigin-RevId: 780484650 Change-Id: I1516310b78322eeb62d982a2e2a69d7ec756f925
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