diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/BUILD b/src/main/java/com/google/devtools/build/lib/rules/java/BUILD index b4b6d2bd6b3442..55b715c2bd4bfb 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/java/BUILD +++ b/src/main/java/com/google/devtools/build/lib/rules/java/BUILD @@ -57,6 +57,7 @@ java_library( "//src/main/java/com/google/devtools/build/lib:skylarkinterface", "//src/main/java/com/google/devtools/build/lib:util", "//src/main/java/com/google/devtools/build/lib/actions", + "//src/main/java/com/google/devtools/build/lib/analysis/platform", "//src/main/java/com/google/devtools/build/lib/collect/nestedset", "//src/main/java/com/google/devtools/build/lib/concurrent", "//src/main/java/com/google/devtools/build/lib/rules/cpp", @@ -106,7 +107,6 @@ java_library( "JavaRuleOutputJarsProvider.java", "JavaRunfilesProvider.java", "JavaRuntimeInfo.java", - "JavaRuntimeToolchainInfo.java", "JavaSemantics.java", "JavaSkylarkApiProvider.java", "JavaSkylarkCommon.java", diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/JavaHostRuntimeAliasRule.java b/src/main/java/com/google/devtools/build/lib/rules/java/JavaHostRuntimeAliasRule.java index df2921454966af..033ea61d5cfb29 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/java/JavaHostRuntimeAliasRule.java +++ b/src/main/java/com/google/devtools/build/lib/rules/java/JavaHostRuntimeAliasRule.java @@ -16,6 +16,7 @@ import com.google.devtools.build.lib.analysis.RuleDefinitionEnvironment; import com.google.devtools.build.lib.analysis.config.HostTransition; +import com.google.devtools.build.lib.analysis.platform.ToolchainInfo; import com.google.devtools.build.lib.cmdline.Label; import com.google.devtools.build.lib.packages.Attribute; import com.google.devtools.build.lib.rules.LateBoundAlias.CommonAliasRule; @@ -29,6 +30,6 @@ public JavaHostRuntimeAliasRule() { @Override protected Attribute.Builder