Skip to content

Commit

Permalink
Include KAPT generated source jars as Kotlin builder inputs (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
jongerrish authored Nov 24, 2020
1 parent f5c7c0e commit 6a56db5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kotlin/internal/jvm/compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def _run_kt_builder_action(

args.add_all("--classpath", compile_deps.compile_jars)
args.add_all("--sources", srcs.all_srcs, omit_if_empty = True)
args.add_all("--source_jars", srcs.src_jars, omit_if_empty = True)
args.add_all("--source_jars", srcs.src_jars + generated_src_jars, omit_if_empty = True)

args.add_joined("--kotlin_friend_paths", friend.paths, join_with = "\n")

Expand Down Expand Up @@ -450,7 +450,7 @@ def _run_kt_builder_action(
ctx.actions.run(
mnemonic = mnemonic,
inputs = depset(
srcs.all_srcs + srcs.src_jars,
srcs.all_srcs + srcs.src_jars + generated_src_jars,
transitive = [compile_deps.compile_jars, transitive_runtime_jars] + [p.classpath for p in compiler_plugins],
),
tools = tools,
Expand Down

0 comments on commit 6a56db5

Please sign in to comment.