Any update on this thread. I have same requirement. On Wednesday, 11 October, 2017 at 3:33:12 pm UTC+5:30 [email protected] wrote:
> Hello, > > Is there a way to compile *.proto containing grpc-gateway > <https://github.com/grpc-ecosystem/grpc-gateway> definitions using maven? > If so, what would that look like? > > For regular gRPC services I do what the documentation says - compile using > protobuf-maven-plugin with the grpc-java plugin. Much smoother than > invoking ant or even running protoc from the command line. I would like to > do the same for grpc-gateway. > > <plugin> > <groupId>org.xolstice.maven.plugins</groupId> > <artifactId>protobuf-maven-plugin</artifactId> > <version>0.5.0</version> > <configuration> > <!-- The version of protoc must match protobuf-java. > If you don't depend on protobuf-java directly, you > will be transitively depending > on the protobuf-java version that grpc depends on. > --> > > <protocArtifact>com.google.protobuf:protoc:${protobufVersion}:exe:${os.detected.classifier}</protocArtifact> > <pluginId>grpc-java</pluginId> > > <pluginArtifact>io.grpc:protoc-gen-grpc-java:${gRpcVersion}:exe:${os.detected.classifier}</pluginArtifact> > </configuration> > <executions> > <execution> > <goals> > <goal>compile</goal> > <goal>compile-custom</goal> > </goals> > </execution> > </executions> > </plugin> > > Thank you, > > David > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/88dc8107-218e-4da6-b95a-e2bbdd52b585n%40googlegroups.com.
