blob: 13a46003beaeee76c7f96f656fa2e23d3bc31d55 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{#- empty string #}
plugins {
{%- if mainClass %}
`application`
{%- else %}
`java-library`
{%- endif %}
{%- if publish %}
`maven-publish`
`signing`
{%- endif -%}
{%- if with_kotlin and kotlin_version %}
kotlin("jvm") version "{{ kotlin_version }}"
{%- if target.with_kotlinc_plugin_allopen|length %}
kotlin("plugin.allopen") version "{{ kotlin_version }}"
{% endif -%}
{%- if target.with_kotlinc_plugin_lombok|length %}
kotlin("plugin.lombok") version "{{ kotlin_version }}"
{% endif -%}
{%- if target.with_kotlinc_plugin_noarg|length %}
kotlin("plugin.noarg") version "{{ kotlin_version }}"
{% endif -%}
{%- if target.with_kotlinc_plugin_serialization|length %}
kotlin("plugin.serialization") version "{{ kotlin_version }}"
{% endif -%}
{%- endif -%}
{%- if has_errorprone %}
id("net.ltgt.errorprone") version "4.1.0"
{%- endif -%}
{#- TODO remove usings annotation_processors semantic -#}
{%- if ("lombok.launch.AnnotationProcessorHider$AnnotationProcessor" in target.annotation_processors) or (target.use_annotation_processor|length and target.use_annotation_processor|select('startsWith', 'contrib/java/org/projectlombok/lombok')|length) %}
id("io.freefair.lombok") version "8.6"
{%- endif %}
}
{#- language level -#}
{%- if has_required_jdk %}
java {
toolchain {
languageVersion = JavaLanguageVersion.of("{{ required_jdk }}")
}
}
{%- endif -%}
|