My proto files use default google protocolbuffers types such as struct and timestamp.
Using the default gradle protoc integration, gradle outputs errors because it can not resolve imports:
google/protobuf/struct.proto: File not found.
google/protobuf/timestamp.proto: File not found.
Replacing the default gradle protoc block
protoc {
artifact = 'com.google.protobuf:protoc:3.3.0'
}
with one specifying where protoc is
protoc {
path = '/usr/local/bin/protoc'
}
fixes the issue but it is not portable.
Is there any jar dependency or other portable solution that could make the default gradle protoc definition working?