Skip to content

Instantly share code, notes, and snippets.

@nandak522
Created October 30, 2018 16:43
Show Gist options
  • Save nandak522/15f1d8faa03569f79a2a7d6b8265089d to your computer and use it in GitHub Desktop.
Save nandak522/15f1d8faa03569f79a2a7d6b8265089d to your computer and use it in GitHub Desktop.
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>${protobuf-maven-plugin.version}</version>
<configuration>
<protocArtifact>
com.google.protobuf:protoc:3.3.0:exe:${os.detected.classifier}
</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>
io.grpc:protoc-gen-grpc-java:1.4.0:exe:${os.detected.classifier}
</pluginArtifact>
<outputDirectory>
generated-sources/
</outputDirectory>
<clearOutputDirectory>false</clearOutputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>compile-custom</goal>
</goals>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment