Skip to content

Commit

Permalink
source jars passed as rule srcs attributes were being included as nes…
Browse files Browse the repository at this point in the history
…ted source jars. Exclude them by only including kt + java source files, since the source jars are included in the source_jars field already. (#507)
  • Loading branch information
jongerrish authored Mar 20, 2021
1 parent 0a2440b commit 80e545c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kotlin/internal/jvm/compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 80e545c

Please sign in to comment.