Avoid resolving a target JDK in java_lite_proto_library
the target JDK isn't actually needed, and this allows j_l_p_l to be
used in builds targeting platforms that we don't have a JDK for.
@@ -30,7 +30,7 @@ import com.google.devtools.build.lib.packages.RuleClass;
import com.google.devtools.build.lib.packages.SkylarkProviderIdentifier;
import com.google.devtools.build.lib.rules.java.JavaConfiguration;
import com.google.devtools.build.lib.rules.java.JavaInfo;
-import com.google.devtools.build.lib.rules.java.JavaRuleClasses.JavaRuntimeBaseRule;
+import com.google.devtools.build.lib.rules.java.JavaRuleClasses.JavaHostRuntimeBaseRule;
import com.google.devtools.build.lib.rules.java.JavaRuleClasses.JavaToolchainBaseRule;
import com.google.devtools.build.lib.rules.java.proto.JavaLiteProtoLibrary;
import com.google.devtools.build.lib.rules.java.proto.JavaProtoAspectCommon;
@@ -75,7 +75,9 @@ public class BazelJavaLiteProtoLibraryRule implements RuleDefinition {
.name("java_lite_proto_library")
.factoryClass(JavaLiteProtoLibrary.class)
.ancestors(
- BaseRuleClasses.RuleBase.class, JavaToolchainBaseRule.class, JavaRuntimeBaseRule.class)
+ BaseRuleClasses.RuleBase.class,
+ JavaToolchainBaseRule.class,
+ JavaHostRuntimeBaseRule.class)
.build();
}
}
