I have a simple java project(No spring) and I have a protobuf file test.proto in src/resources folder and I want to generate sources from it. I read in several places that, to use the plugin I need to install it locally first. But in my previous gradle project I didn't need to do anything like this and just a simple config like below works for gradle :
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.8.0'
}
generateProtoTasks.generatedFilesBaseDir = generatedProtoPath
}
What is similar thing in Maven, if I want to use google provided protoc compiler and generate code without downloading and installing anything on my production machine.