Meine Proto-Dateien verwenden Standard-google Protokollbuffers-Typen wie struct und timestamp.Gradle Protoc-Plugin findet keine Standard-Google-Proto-Datei
die Standard gradle Protoc Integration verwenden, gradle Ausgänge Fehler, weil sie die Einfuhren nicht lösen können:
google/protobuf/struct.proto: File not found.
google/protobuf/timestamp.proto: File not found.
den Protoc Block Standard gradle Ersetzen
protoc {
artifact = 'com.google.protobuf:protoc:3.3.0'
}
mit einer Spezifizierungs wo Protoc
istprotoc {
path = '/usr/local/bin/protoc'
}
behebt das Problem, aber es ist nicht tragbar.
Gibt es eine Jar-Abhängigkeit oder eine andere portable Lösung, die die standardmäßige Graplel-Protoc-Definition funktionieren lassen könnte?