From 80e545cea228ac28b7c0bc1a661a3aaea0762a39 Mon Sep 17 00:00:00 2001 From: Jonathan Gerrish Date: Sat, 20 Mar 2021 09:21:49 -0700 Subject: [PATCH] source jars passed as rule srcs attributes were being included as nested source jars. Exclude them by only including kt + java source files, since the source jars are included in the source_jars field already. (#507) --- kotlin/internal/jvm/compile.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin/internal/jvm/compile.bzl b/kotlin/internal/jvm/compile.bzl index 9c22903bc..f14a85c6c 100644 --- a/kotlin/internal/jvm/compile.bzl +++ b/kotlin/internal/jvm/compile.bzl @@ -601,7 +601,7 @@ def kt_jvm_produce_jar_actions(ctx, rule_kind): ctx.actions, output_jar = output_jar, output_source_jar = ctx.outputs.srcjar, - sources = ctx.files.srcs, + sources = srcs.kt + srcs.java, source_jars = srcs.src_jars + generated_src_jars, java_toolchain = toolchains.java, host_javabase = toolchains.java_runtime,