Skip to content

Commit

Permalink
Change the visibility of some targets to public to make them visible …
Browse files Browse the repository at this point in the history
…to jsinterop-generator and jsinterop-base and not pollute the dep graph in Bzlmod. This is related to issue bazelbuild/bazel#25214.

PiperOrigin-RevId: 724049143
  • Loading branch information
mollyibot authored and copybara-github committed Feb 6, 2025
1 parent af95dab commit 6f14aae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
14 changes: 4 additions & 10 deletions jre/java/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,17 @@ java_library(
name = "javaemul_internal_annotations",
srcs = glob(["javaemul/internal/annotations/*.java"]),
visibility = [
"//benchmarking/java:__subpackages__",
"//jre/javatests:__subpackages__",
"@com_google_jsinterop_base//:__subpackages__",
"//transpiler/javatests:__subpackages__",
# Do not use. Temporary visible to workaround https://github.com/bazelbuild/bazel/issues/25214.
"//visibility:public",
],
)

j2cl_import(
name = "javaemul_internal_annotations-j2cl",
jar = ":javaemul_internal_annotations",
visibility = [
"//benchmarking/java:__subpackages__",
"//jre/javatests:__subpackages__",
"//junit/generator/java/com/google/j2cl/junit/runtime:__pkg__",
"@com_google_j2cl_proto//java/com/google/protobuf/contrib/j2cl/runtime:__pkg__",
"@com_google_jsinterop_base//:__subpackages__",
"//transpiler/javatests:__subpackages__",
# Do not use. Temporary visible to workaround https://github.com/bazelbuild/bazel/issues/25214.
"//visibility:public",
],
)

Expand Down
4 changes: 2 additions & 2 deletions transpiler/java/com/google/j2cl/common/visitor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ java_library(
name = "visitor",
exported_plugins = ["//transpiler/java/com/google/j2cl/common/visitor/generator:visitor-apt-processor"],
visibility = [
"@com_google_jsinterop_generator//:__subpackages__",
"//transpiler:__subpackages__",
# Do not use. Temporary visible to workaround https://github.com/bazelbuild/bazel/issues/25214.
"//visibility:public",
],
exports = [":visitor-internal"],
)
Expand Down

0 comments on commit 6f14aae

Please sign in to comment.