From 72a132de0e62bc6d75290bf8f154886ae04eb8b5 Mon Sep 17 00:00:00 2001 From: Mark McLaughlin Date: Mon, 13 May 2024 17:01:56 +0100 Subject: [PATCH] Update to tested make target for java grpc client. --- Makefile | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index e8b323b..7dda1a3 100644 --- a/Makefile +++ b/Makefile @@ -47,16 +47,20 @@ api: --openapi_out=fq_schema_naming=true,default_response=false:. \ $(API_PROTO_FILES) -java: - protoc --plugin=protoc-gen-grpc-java \ - --grpc-java_out="$OUTPUT_FILE" \ - --proto_path=./api \ - --proto_path=./third_party \ - --go_out=paths=source_relative:./api \ - --go-http_out=paths=source_relative:./api \ - --go-grpc_out=paths=source_relative:./api \ - --openapi_out=fq_schema_naming=true,default_response=false:. \ - $(API_PROTO_FILES) +.PHONY: java_api +# generate java_api proto +# REQUIRED: protoc-gen-grpc-java plugin from https://repo.maven.apache.org/maven2/io/grpc/protoc-gen-grpc-java/1.63.0/ +# on your path. Then: +# chmod u+x /protoc-gen-grpc-java-1.63.0-osx-aarch_64.exe +# ln -s /protoc-gen-grpc-java-1.63.0-.exe protoc-gen-grpc-java +java_api: + mkdir -p ./relations-client-java/src/main/java + protoc --proto_path=./api \ + --proto_path=./third_party \ + --java_out=./relations-client-java/src/main/java \ + --plugin=protoc-gen-grpc-java \ + --grpc-java_out=./relations-client-java/src/main/java \ + $(API_PROTO_FILES) .PHONY: build # build