This is a simple PoC project that holds protobuf files for a gRPC service and uses buf CLI and CirlceCI for linting and verifying for breaking changes in the protobuf definitions.
The current CircleCI configuration runs the verifications for every commit pushed in any branch against the current protobuf definitions in the main branch.
This project also uses gradle for building a jar file containing Kotlin and Java messages and stubs to be used on Server and Client implementations for the RPC services defined in the protobuf files.
The last generate code from this project can be imported as a dependency in gradle projects using JitPack.io:
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
dependencies {
implementation 'com.github.jviniciusb:proto-hello-grpc:1.0.0'
}