Skip to content

Commit

Permalink
fix(qsync): Handle codegen - generic case (#7069)
Browse files Browse the repository at this point in the history
relates to ##6547
  • Loading branch information
Tomasz Pasternak authored Dec 12, 2024
1 parent dc64002 commit 93295b0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions aspect/build_dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,17 @@ def _collect_own_java_artifacts(
own_gensrc_files.append(java_output.generated_source_jar)
elif java_output.generated_class_jar:
generated_class_jars.append(java_output.generated_class_jar)
else:
for src_attr in JVM_SRC_ATTRS:
# unfortunately, in cases where we have non-cource
# src attribute, we had to add full output jar
# to avoid red code
# We would need jar filtering to handle it well
if hasattr(rule.attr, src_attr):
for src in getattr(rule.attr, src_attr):
for file in src.files.to_list():
if not file.is_source:
generated_class_jars.append(java_output.class_jar)

if generated_class_jars:
own_jar_files += generated_class_jars
Expand Down

0 comments on commit 93295b0

Please sign in to comment.