aboutsummaryrefslogtreecommitdiffstats
path: root/build/conf
diff options
context:
space:
mode:
authordimdim11 <dimdim11@yandex-team.com>2024-11-11 07:53:20 +0300
committerdimdim11 <dimdim11@yandex-team.com>2024-11-11 08:07:47 +0300
commit96fe69bacb64fa8f677588717d5cc139117cb761 (patch)
treeb283f1f2cc9d7ec04af82404f3dcf0c5b15f6dc1 /build/conf
parent957f86df328db96cde860a1f5c8ba564358688a3 (diff)
downloadydb-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/conf')
-rw-r--r--build/conf/java.conf1
-rw-r--r--build/conf/proto.conf7
2 files changed, 6 insertions, 2 deletions
diff --git a/build/conf/java.conf b/build/conf/java.conf
index 39fd1835d4..4bce6eb2e5 100644
--- a/build/conf/java.conf
+++ b/build/conf/java.conf
@@ -1985,6 +1985,7 @@ DETEKT_VERSION=1.23.7
_KOTLIN_SEM= \
${_WITH_KOTLIN_SEM} \
${_KOTLIN_VERSION_SEM} \
+ ${_WITH_KOTLIN_GRPC_SEM} \
${_WITH_KOTLINC_PLUGIN_ALLOPEN_SEM} \
${_WITH_KOTLINC_PLUGIN_LOMBOK_SEM} \
${_WITH_KOTLINC_PLUGIN_NOARG_SEM} \
diff --git a/build/conf/proto.conf b/build/conf/proto.conf
index 1a059839c2..a55bfbe7bd 100644
--- a/build/conf/proto.conf
+++ b/build/conf/proto.conf
@@ -199,12 +199,14 @@ macro _ADD_SEM_PROP_IF_NON_EMPTY(Prop, Args...) {
}
# tag:proto tag:java-specific
+_WITH_KOTLIN_GRPC_SEM=
macro WITH_KOTLIN_GRPC() {
ENABLE(KOTLIN_PROTO)
PEERDIR(build/platform/java/kotlin_grpc)
- SET_APPEND(JAVA_PROTO_ARGS ${env:"JAVA_HOME=${JDK_RESOURCE}"} ${env:"KOTLIN_GRPC_JAR=${KOTLIN_GRPC_RESOURCE_GLOBAL}/grpc_kotlin/protoc-gen-grpc-kotlin-1.3.1.jar"} --plugin=protoc-gen-kotlin_grpc=${KOTLIN_GRPC_RESOURCE_GLOBAL}/grpc_kotlin/grpc_kotlin --kotlin_grpc_out=$ARCADIA_BUILD_ROOT/java_out)
- SET(JAVA_PROTOBUF_PEERS $JAVA_PROTOBUF_PEERS contrib/java/io/grpc/grpc-kotlin-stub/1.3.1)
+ SET_APPEND(JAVA_PROTO_ARGS ${env:"JAVA_HOME=${JDK_RESOURCE}"} ${env:"KOTLIN_GRPC_JAR=${KOTLIN_GRPC_RESOURCE_GLOBAL}/grpc_kotlin/protoc-gen-grpc-kotlin-${KOTLIN_GRPC_VERSION}.jar"} --plugin=protoc-gen-kotlin_grpc=${KOTLIN_GRPC_RESOURCE_GLOBAL}/grpc_kotlin/grpc_kotlin --kotlin_grpc_out=$ARCADIA_BUILD_ROOT/java_out)
+ SET(JAVA_PROTOBUF_PEERS $JAVA_PROTOBUF_PEERS contrib/java/io/grpc/grpc-kotlin-stub/$KOTLIN_GRPC_VERSION)
SET(JAVA_PROTOBUF_PEERS $JAVA_PROTOBUF_PEERS contrib/java/com/google/protobuf/protobuf-kotlin/${JAVA_PROTO_RUNTIME_VERSION})
+ SET(_WITH_KOTLIN_GRPC_SEM && proto_kotlin_grpc && proto_kotlin_grpc_version ${KOTLIN_GRPC_VERSION})
}
@@ -477,6 +479,7 @@ JAVA_PROTO_COMPILER_VERSION = 3.25.3
JAVA_PROTO_RUNTIME_VERSION = 3.25.3
JAVA_PROTO_COMMON_VERSION = 2.9.0
JAVA_GRPC_VERSION = 1.51.0
+KOTLIN_GRPC_VERSION = 1.3.1
JAVA_NETTY_NETTY_VERSION = 4.1.79.Final
KOTLIN_PROTO=no
KOTLIN_PROTO_PEERS=