diff options
author | dimdim11 <dimdim11@yandex-team.com> | 2024-11-11 07:53:20 +0300 |
---|---|---|
committer | dimdim11 <dimdim11@yandex-team.com> | 2024-11-11 08:07:47 +0300 |
commit | 96fe69bacb64fa8f677588717d5cc139117cb761 (patch) | |
tree | b283f1f2cc9d7ec04af82404f3dcf0c5b15f6dc1 /build/export_generators/ide-gradle/build.gradle.kts.proto.jinja | |
parent | 957f86df328db96cde860a1f5c8ba564358688a3 (diff) | |
download | ydb-96fe69bacb64fa8f677588717d5cc139117cb761.tar.gz |
Support WITH_KOTLIN_GRPC for ya ide gradle
Support WITH_KOTLIN_GRPC for ya ide gradle
commit_hash:3393b00307a4160894a72e073eb2eeb9e8f0d747
Diffstat (limited to 'build/export_generators/ide-gradle/build.gradle.kts.proto.jinja')
-rw-r--r-- | build/export_generators/ide-gradle/build.gradle.kts.proto.jinja | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/build/export_generators/ide-gradle/build.gradle.kts.proto.jinja b/build/export_generators/ide-gradle/build.gradle.kts.proto.jinja index d81a7ea0b0..7e0e0c1990 100644 --- a/build/export_generators/ide-gradle/build.gradle.kts.proto.jinja +++ b/build/export_generators/ide-gradle/build.gradle.kts.proto.jinja @@ -106,17 +106,30 @@ protobuf { // Download from repositories artifact = "com.google.protobuf:protoc:{%- if target.proto_compiler_version -%}{{ target.proto_compiler_version }}{%- else -%}3.22.5{%- endif -%}" } -{% if target.proto_grpc is defined -%} +{% if target.proto_grpc -%} plugins { id("grpc") { artifact = "io.grpc:protoc-gen-grpc-java:{%- if target.proto_grpc_version -%}{{ target.proto_grpc_version }}{%- else -%}1.45.0{%- endif -%}" } +{%- if target.proto_kotlin_grpc %} + id("grpckt") { + artifact = "io.grpc:protoc-gen-grpc-kotlin:{%- if target.proto_kotlin_grpc_version -%}{{ target.proto_kotlin_grpc_version }}{%- else -%}1.3.1{%- endif -%}:jdk8@jar" + } +{% endif -%} } generateProtoTasks { all().forEach { it.plugins { id("grpc") +{%- if target.proto_kotlin_grpc %} + id("grpckt") +{% endif -%} + } +{%- if target.proto_kotlin_grpc %} + it.builtins { + create("kotlin") } +{% endif -%} } } {%- endif %} |