Last active
September 9, 2019 16:32
-
-
Save KKcorps/3c7b2de45b6ca93456e0c3d56b193de4 to your computer and use it in GitHub Desktop.
Maven Proto Snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<grpc.version>1.19.0</grpc.version><!-- CURRENT_GRPC_VERSION --> | |
<protobuf.version>3.6.1</protobuf.version> | |
<protoc.version>3.6.1</protoc.version> | |
<!-- required for jdk9 --> | |
<maven.compiler.source>1.7</maven.compiler.source> | |
<maven.compiler.target>1.7</maven.compiler.target> | |
</properties> | |
<build> | |
<sourceDirectory> | |
${basedir}/target/generated-sources/ | |
</sourceDirectory> | |
<extensions> | |
<extension> | |
<groupId>kr.motd.maven</groupId> | |
<artifactId>os-maven-plugin</artifactId> | |
<version>1.6.2</version> | |
</extension> | |
</extensions> | |
<plugins> | |
<plugin> | |
<groupId>org.xolstice.maven.plugins</groupId> | |
<artifactId>protobuf-maven-plugin</artifactId> | |
<version>0.5.1</version> | |
<configuration> | |
<protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact> | |
<pluginId>grpc-java</pluginId> | |
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact> | |
</configuration> | |
<executions> | |
<execution> | |
<goals> | |
<goal>compile</goal> | |
<goal>compile-custom</goal> | |
<goal>test-compile</goal> | |
<goal>test-compile-custom</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin>sasas | |
</plugins> | |
</build> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment