it looks like the google grpc kotlin examples are ...
# grpc
j
it looks like the google grpc kotlin examples are using a different plugin hierarchy from a medium article that has a "kotlin-grpc-plugin" and if i want to get an idea of the samples i should ... run a shellscript?
s
There aren’t official Google implementation of gRPC for Kotlin. Everything is done in Java which is OK if you work with Android/JVM only. And to create classes out of protobuf defintions, you must use a CLI tool called
protoc
. Again, Google provide gradle plugin to do this but you can do it inside a shell script. All Kotlin implementations are third party and have different pros and cons
j
if i ditch gradle, and convert to a maven project, i can start to bring in libraries, and let intellij reason about the project artifacts and versions in one project language. I can bring in grpc and start using methods and classes without gradle, i think
s
I can’t help you much with maven, haven’t worked with it
j
as an alternative, can you show me a sample that doesn't look like it's thrown over the wall by a team too busy with internal projects?
s
From what I had found, this is the plugin with good example: https://github.com/google/protobuf-gradle-plugin
j
i think this is too much magic in one place. i want the proto as a codec,, i can make determinations about rpc and protocol intelligently, these project examples don't really lend themselves well to coexisting in a project that needs to add RPC. im not enough up on gradle modules to do anything cleanly with the examples given in the context needed