blob: 75268d66aa27d142644e5ea78d93065313ccf377 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{#- empty string #}
sourceSets {
{%- if target.runs|length %}
main {
{#-
Default by Gradle:
java.srcDir("src/main/java")
resources.srcDir("src/main/resources")
#}
{%- for run in target.runs -%}
{{ OutDirs(run, ' java.srcDir("', '")') }}
{%- endfor %}
}
{%- endif %}
test {
{#-
Default by Gradle:
java.srcDir("src/test/java")
resources.srcDir("src/test/resources")
#}
java.srcDir("ut/java")
resources.srcDir("ut/resources")
java.srcDir("src/test-integration/java")
resources.srcDir("src/test-integration/resources")
java.srcDir("src/testFixtures/java")
resources.srcDir("src/testFixtures/resources")
java.srcDir("src/intTest/java")
resources.srcDir("src/intTest/resources")
{%- for extra_target in extra_targets -%}
{%- if extra_target.runs|length -%}
{%- for run in extra_target.runs -%}
{{ OutDirs(run, ' java.srcDir("', '")') }}
{%- endfor -%}
{%- endif -%}
{%- endfor %}
}
}
{%- if target.jar_source_set|length -%}
{%- for source_set in target.jar_source_set -%}
{%- set srcdir_glob = split(source_set, ':') %}
sourceSets.main.java.srcDirs += "{{ srcdir_glob[0] }}"
{%- endfor -%}
{%- endif -%}
{% for extra_target in extra_targets -%}
{%- if extra_target.jar_source_set|length -%}
{%- for source_set in extra_target.jar_source_set -%}
{%- set srcdir_glob = split(source_set, ':') %}
sourceSets.main.java.srcDirs += "{{ srcdir_glob[0] }}"
{%- endfor -%}
{%- endif -%}
{%- endfor -%}
|