Report an error for missing java_library.exported_plugins
@@ -112,7 +112,8 @@ public final class BazelJavaLibraryRule implements RuleDefinition {
<code>deps</code>.
</p>
<!-- #END_BLAZE_RULE.ATTRIBUTE --> */
- .add(attr("exports", LABEL_LIST)
+ .add(
+ attr("exports", LABEL_LIST)
.allowedRuleClasses(BazelJavaRuleClasses.ALLOWED_RULES_IN_DEPS)
.allowedFileTypes(/*May not have files in exports!*/ ))
@@ -145,8 +146,11 @@ public final class BazelJavaLibraryRule implements RuleDefinition {
labels in <code><a href="${link java_library.plugins}">plugins</a></code>.
</p>
<!-- #END_BLAZE_RULE.ATTRIBUTE --> */
- .add(attr("exported_plugins", LABEL_LIST).cfg(HOST).allowedRuleClasses("java_plugin")
- .legacyAllowAnyFileType())
+ .add(
+ attr("exported_plugins", LABEL_LIST)
+ .cfg(HOST)
+ .allowedRuleClasses("java_plugin")
+ .allowedFileTypes())
.advertiseProvider(JavaSourceInfoProvider.class)
.advertiseProvider(JavaCompilationArgsProvider.class)
.build();
