diff --git a/jre/java/jdk_system.bzl b/jre/java/jdk_system.bzl index 0e1da40fd1..14627e26d5 100644 --- a/jre/java/jdk_system.bzl +++ b/jre/java/jdk_system.bzl @@ -1,9 +1,11 @@ """Helpers to create a JDK system module.""" -load("@rules_java//java:defs.bzl", "java_common") +load("@rules_java//java:defs.bzl", "JavaInfo", "java_common") def _jdk_system(ctx): + # TODO(goktug): Use header jar for open-source when Bazel with new Turbine is available. bootclasspath = ctx.file.bootclasspath + system = ctx.actions.declare_directory("%s" % ctx.label.name) java_runtime = ctx.attr._runtime[java_common.JavaRuntimeInfo] zip_tool = ctx.executable._zip @@ -51,6 +53,7 @@ jdk_system = rule( "bootclasspath": attr.label( cfg = "target", allow_single_file = True, + providers = [JavaInfo], ), "_runtime": attr.label( default = Label("@bazel_tools//tools/jdk:current_host_java_runtime"),