diff options
author | dimdim11 <[email protected]> | 2025-08-26 16:09:45 +0300 |
---|---|---|
committer | dimdim11 <[email protected]> | 2025-08-26 16:56:34 +0300 |
commit | 086240d0ad585634f1a6bb8df82f0e5a1b25ea4d (patch) | |
tree | b1ad60c76667f87e77c6086d05334f4006370cda | |
parent | b5712aa4d10755c6a20d652fb1f823c2680b793a (diff) |
Fix KAPT in tests
Fix KAPT in tests
commit_hash:7a266a577f8a31a522049c20d2fd7cc8e8e3e7fc
-rw-r--r-- | build/export_generators/ide-gradle/common_vars.jinja | 2 | ||||
-rw-r--r-- | build/export_generators/ide-gradle/dependencies.jinja | 2 |
2 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 fcf832c5bd2..2d7bf2a1f8e 100644 --- a/build/export_generators/ide-gradle/common_vars.jinja +++ b/build/export_generators/ide-gradle/common_vars.jinja @@ -21,7 +21,7 @@ {%- 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 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 -%} +{%- 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')|selectattr('classpaths')|map(attribute='classpaths')|sum|length -%} {%- endif -%} {#- ErrorProne -#} diff --git a/build/export_generators/ide-gradle/dependencies.jinja b/build/export_generators/ide-gradle/dependencies.jinja index 5b69afecc73..32cba0a019b 100644 --- a/build/export_generators/ide-gradle/dependencies.jinja +++ b/build/export_generators/ide-gradle/dependencies.jinja @@ -97,7 +97,7 @@ dependencies { {%- endif -%} {%- if with_test_kapt -%} {%- for extra_target in extra_targets -%} -{{ Kapts("testKapt", extra_target.kapt.classpaths) }} +{{ Kapts("kapt", extra_target.kapt.classpaths) }} {%- endfor -%} {%- endif -%} {#- glue -#} |