Skip to content

Commit 93295b0

Browse files
author
Tomasz Pasternak
authored
fix(qsync): Handle codegen - generic case (#7069)
relates to ##6547
1 parent dc64002 commit 93295b0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

aspect/build_dependencies.bzl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,17 @@ def _collect_own_java_artifacts(
546546
own_gensrc_files.append(java_output.generated_source_jar)
547547
elif java_output.generated_class_jar:
548548
generated_class_jars.append(java_output.generated_class_jar)
549+
else:
550+
for src_attr in JVM_SRC_ATTRS:
551+
# unfortunately, in cases where we have non-cource
552+
# src attribute, we had to add full output jar
553+
# to avoid red code
554+
# We would need jar filtering to handle it well
555+
if hasattr(rule.attr, src_attr):
556+
for src in getattr(rule.attr, src_attr):
557+
for file in src.files.to_list():
558+
if not file.is_source:
559+
generated_class_jars.append(java_output.class_jar)
549560

550561
if generated_class_jars:
551562
own_jar_files += generated_class_jars

0 commit comments

Comments
 (0)