diff options
author | dimdim11 <[email protected]> | 2025-05-28 11:22:37 +0300 |
---|---|---|
committer | dimdim11 <[email protected]> | 2025-05-28 11:42:48 +0300 |
commit | 31893af15041c374e22ad1f34f4a0d6a809dc617 (patch) | |
tree | 2bf8f4937f0df5c51a6fade8868f4dadd0153a51 | |
parent | a836d3b46fb5ab448b68b39871ee3edeb0444cca (diff) |
Detect with_kapt only if present kapt classpaths
Detect with_kapt only if present kapt classpaths
commit_hash:ae6b47d591bbdcfaa8acd3e8218529ee7c5912bc
-rw-r--r-- | build/export_generators/ide-gradle/common_vars.jinja | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/export_generators/ide-gradle/common_vars.jinja b/build/export_generators/ide-gradle/common_vars.jinja index ad248637271..20349ac618d 100644 --- a/build/export_generators/ide-gradle/common_vars.jinja +++ b/build/export_generators/ide-gradle/common_vars.jinja @@ -20,8 +20,8 @@ {%- set with_kotlinc_plugin_serialization = all_targets|selectattr('with_kotlinc_plugin_serialization')|map(attribute='with_kotlinc_plugin_serialization')|sum -%} {%- set with_kotlinc_plugin_lombok = all_targets|selectattr('with_kotlinc_plugin_lombok')|map(attribute='with_kotlinc_plugin_lombok')|sum -%} {#- KAPT -#} -{%- set with_kapt = target.with_kapt -%} -{%- set with_test_kapt = extra_targets|selectattr('with_kapt', 'eq', true)|map(attribute='with_kapt')|length -%} +{%- set with_kapt = target.with_kapt and target.kapt.classpaths|length -%} +{%- set with_test_kapt = extra_targets|selectattr('with_kapt', 'eq', true)|map(attribute='with_kapt')|length and extra_targets|selectattr('with_kapt', 'eq', true)|selectattr('kapt')|map(attribute='kapt')|sum|selectattr('classpath')|map(attribute='classpaths')|sum|length -%} {%- endif -%} {#- ErrorProne -#} |