Motivation:
Currently, java-rpc-proto.gradle does not generate Kotlin DSL builder
for protobuf messages even when the project is flagged with kotlin-grpc.
Registering kotlin plugin within generateProtoTasks closure will make it
generate Kotlin DSL builder for protobuf mesages.
generateProtoTasks {
if (project.ext.hasFlag('kotlin-grpc') && ...) {
kotlinGrpc {}
// Apply `kotlin` plugin to generate DSL builder.
kotlin {}
}
}