blob: fffe7301a6540948660bbecb7e65ff8b21e1fee9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{#- empty string #}
sourceSets {
main {
java.srcDir("$buildDir/generated/sources/proto/main/java")
{%- if target.proto_grpc %}
java.srcDir("$buildDir/generated/sources/proto/main/grpc")
{%- endif %}
}
test {
java.srcDir("$buildDir/generated/sources/proto/test/java")
{%- if target.proto_grpc %}
java.srcDir("$buildDir/generated/sources/proto/test/grpc")
{%- endif %}
}
}
{%- if target.jar_source_set is defined -%}
{%- for source_set in target.jar_source_set -%}
{%- set srcdir_glob = split(source_set, ':') %}
sourceSets.main.java.srcDirs += "{{ srcdir_glob[0] }}"
{% endfor -%}
{%- endif %}
|