Remove javacopts and java_plugins attributes of aar_import.
These do not make sense since aar_import does not compile any java but are inherited from JavaBaseRule.
RELNOTES: None
@@ -27,7 +27,10 @@ public final class BazelAarImportRule implements RuleDefinition {
@Override
public RuleClass build(Builder builder, RuleDefinitionEnvironment environment) {
- return builder.build();
+ return builder
+ .removeAttribute("javacopts")
+ .removeAttribute("plugins")
+ .build();
}
@Override
