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
diff --git a/java/BUILD b/java/BUILD index 3162148..452c765 100644 --- a/java/BUILD +++ b/java/BUILD
@@ -88,7 +88,7 @@ "//java/common:for_bazel_tests", "//java/private:for_bazel_tests", "//java/toolchains:for_bazel_tests", - "@bazel_skylib//lib:test_deps", + "@bazel_skylib//:test_deps", ], visibility = ["//visibility:public"], )