From ea52efd352208022a62a56960118fa1dfaa8572e Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Tue, 18 Apr 2023 22:34:34 +0300 Subject: [PATCH] feat(proto): configure buf to generate kotlin client --- server/proto/.gitignore | 3 +++ server/proto/buf.gen.yaml | 7 +++++++ server/proto/buf.yaml | 1 + 3 files changed, 11 insertions(+) create mode 100644 server/proto/.gitignore create mode 100644 server/proto/buf.gen.yaml diff --git a/server/proto/.gitignore b/server/proto/.gitignore new file mode 100644 index 00000000..6dadc04c --- /dev/null +++ b/server/proto/.gitignore @@ -0,0 +1,3 @@ +*.jar +protoc-gen-grpc-kotlin.sh +client/ \ No newline at end of file diff --git a/server/proto/buf.gen.yaml b/server/proto/buf.gen.yaml new file mode 100644 index 00000000..7aae5d73 --- /dev/null +++ b/server/proto/buf.gen.yaml @@ -0,0 +1,7 @@ +version: v1 +plugins: + - plugin: grpc-kotlin.sh + out: client/src/main/kotlin + opt: service=true,client=true,server=false + - plugin: kotlin + out: client/src/main/kotlin \ No newline at end of file diff --git a/server/proto/buf.yaml b/server/proto/buf.yaml index a53239cf..48dc14c3 100644 --- a/server/proto/buf.yaml +++ b/server/proto/buf.yaml @@ -8,3 +8,4 @@ lint: breaking: use: - FILE +