Skip to content
Permalink
Browse files

Add cfg "host" for j2cl_library plugin attributes.

This ensures that plugins are ignored for license collection.
Patch also further restricts allowed labels to only java_plugin rules.

PiperOrigin-RevId: 254863322
  • Loading branch information...
gkdn authored and Copybara-Service committed Jun 24, 2019
1 parent 435385a commit 5f1bfb0e090c01c6b3a9ee3c7f8de2b984170eb6
Showing with 2 additions and 2 deletions.
  1. +2 −2 build_defs/internal_do_not_use/j2cl_java_library.bzl
@@ -60,8 +60,8 @@ _J2CL_LIB_ATTRS = {
"srcs": attr.label_list(allow_files = [".java", ".js", ".srcjar", ".jar", ".zip"]),
"deps": attr.label_list(providers = [JS_PROVIDER_NAME]),
"exports": attr.label_list(providers = [JS_PROVIDER_NAME]),
"plugins": attr.label_list(providers = [JavaInfo]),
"exported_plugins": attr.label_list(providers = [JavaInfo]),
"plugins": attr.label_list(allow_rules = ["java_plugin"], cfg = "host"),
"exported_plugins": attr.label_list(allow_rules = ["java_plugin"], cfg = "host"),
"javacopts": attr.string_list(),
}
_J2CL_LIB_ATTRS.update(_J2CL_INTERNAL_LIB_ATTRS)

0 comments on commit 5f1bfb0

Please sign in to comment.
You can’t perform that action at this time.