blob: 61bcc05fa98654eea567684bef879053461466b7 (
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
|
{#- empty string #}
dependencies {
{%- for library in target.consumer if library.classpath -%}
{%- if library.prebuilt and library.jar and (library.type != "contrib" or target.handler.build_contribs) %}
implementation(files("$project_root/{{ library.jar }}"))
{%- else -%}
{%- set classpath = library.classpath -%}
{%- if classpath|replace('"','') == classpath -%}
{%- set classpath = '"' + classpath + '"' -%}
{%- endif %}
{%- if library.type != "contrib" %}
implementation
{%- else %}
api
{%- endif -%}({{ classpath }})
{%- if library.excludes.consumer is defined %} {
{% for exclude in library.excludes.consumer -%}
{% set classpath = exclude.classpath|replace('"','') -%}
{% set classpath_parts = split(classpath, ':') -%}
exclude(group = "{{ classpath_parts[0] }}", module = "{{ classpath_parts[1] }}")
{% endfor -%}
}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
{%- if target.proto_namespace %}
protobuf(files(File(mainProtosDir, "{{ target.proto_namespace }}")))
{%- else %}
protobuf(files(mainProtosDir))
{%- endif %}
}
|