aboutsummaryrefslogtreecommitdiffstats
path: root/build/export_generators/ide-gradle/vars.jinja
blob: d8722a2b42fd68ed4b8971990e1aeb7a14773021 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{%- set mainClass = target.app_main_class -%}
{%- set publish = target.publish -%}
{%- set with_kotlin = target.with_kotlin -%}
{%- set kotlin_version = target.kotlin_version -%}
{%- set has_junit5_test = extra_targets|selectattr('junit5_test') -%}
{%- set has_errorprone = target.use_errorprone and not disable_errorprone and target.consumer|selectattr('jar', 'startsWith', 'contrib/java/com/google/errorprone/error_prone_annotations')|length -%}

{%- if not target.required_jdk -%}
{%-     set has_required_jdk = false -%}
{#-     If no required JDK, set default JDK for Kotlin parts -#}
{%-     set required_jdk = '17' -%}
{%- else -%}
{%-     set has_required_jdk = true -%}
{%-     set required_jdk = target.required_jdk -%}
{%- endif -%}