Updating question as I've progressed from the original problem.
Step 1. I've compiled and Installed Protobuf Compiler for mac using this link.
Step 2. Currently stuck at gRPC Java Codegen Plugin for Protobuf Compiler link:
Successful ../gradlew java_pluginExecutable
Error ../gradlew test
(screenshot 1)
*** Building codegen requires Protobuf version 3.9.0
which protoc
outputs /usr/local/bin/protoc
protoc --version
outputs libprotoc 3.9.0
P.S. Please also mention in your solution what to do next once I'm able to compile java generator, I plan to use the plugin from command line initially.