From 9198f140ecb0f0b923331a38fc7b8a586a33558e Mon Sep 17 00:00:00 2001 From: Christian Gruber Date: Wed, 12 Jun 2019 16:01:02 -0700 Subject: [PATCH] Ensure that the runtime deps pass along their javainfo if present, as ctx.attr.runtime_deps is a list of deps, not a list of javainfos. --- kotlin/internal/jvm/impl.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kotlin/internal/jvm/impl.bzl b/kotlin/internal/jvm/impl.bzl index 4b0e71f70..38ec7997b 100644 --- a/kotlin/internal/jvm/impl.bzl +++ b/kotlin/internal/jvm/impl.bzl @@ -127,9 +127,9 @@ def kt_jvm_import_impl(ctx): DefaultInfo(files = depset(jars)), JavaInfo( output_jar = jars[0], - compile_jar = jars[0], - source_jar = source_jar, - runtime_deps = ctx.attr.runtime_deps, + source_jars = [source_jar] if bool(source_jar) else [], + runtime_deps = [dep[JavaInfo] for dep in ctx.attr.runtime_deps if JavaInfo in dep], + use_ijar = False, neverlink = getattr(ctx.attr, "neverlink", False), ), kt_info,