blob: c563045e69173a2d56f516f815b2fd342c4e6eb2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
{%- if target.javac.flags|length -%}
{#- skip errorprone options -#}
{%- set javac_flags = target.javac.flags|reject('startsWith', '-Xep:')|reject('startsWith', '-XepOpt:') -%}
{%- if javac_flags|length and javac_flags != ['-parameters'] %}
tasks.withType<JavaCompile> {
{%- for javac_flag in javac_flags %}
options.compilerArgs.add("{{ javac_flag }}")
{%- endfor %}
}
{% endif -%}
{%- endif -%}
|