This example shows how to create a custom ServiceGenerator
to write code for Protobuf services such as gRPC. Like the
adjacent gradle-and-jvm
example, this also uses the Protobuf Gradle plugin.
Building the application
project automatically generates the service code. To build the application with generated
source, run:
path/to/gradle :application:installDist
The code generator will run to generate simple service code.
Running the application also builds it. Simply run:
path/to/gradle :application:run
That runs the mock client and mock server to return a simple value.