2016-06-25 09:18:06 +08:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>io.grpc</groupId>
|
|
|
|
<artifactId>examples</artifactId>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
<!-- Feel free to delete the comment at the end of these lines. It is just
|
|
|
|
for safely updating the version in our release process. -->
|
2018-11-20 06:20:42 +08:00
|
|
|
<version>1.18.0-SNAPSHOT</version><!-- CURRENT_GRPC_VERSION -->
|
2016-06-25 09:18:06 +08:00
|
|
|
<name>examples</name>
|
|
|
|
<url>http://maven.apache.org</url>
|
|
|
|
<properties>
|
2017-09-27 01:01:42 +08:00
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
2018-11-20 06:20:42 +08:00
|
|
|
<grpc.version>1.18.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
|
2018-05-18 06:48:45 +08:00
|
|
|
<protobuf.version>3.5.1</protobuf.version>
|
|
|
|
<protoc.version>3.5.1-1</protoc.version>
|
2018-02-07 09:33:32 +08:00
|
|
|
<netty.tcnative.version>2.0.7.Final</netty.tcnative.version>
|
2018-07-19 02:04:31 +08:00
|
|
|
<!-- required for jdk9 -->
|
2018-08-28 04:31:59 +08:00
|
|
|
<maven.compiler.source>1.7</maven.compiler.source>
|
|
|
|
<maven.compiler.target>1.7</maven.compiler.target>
|
2016-06-25 09:18:06 +08:00
|
|
|
</properties>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.grpc</groupId>
|
2018-08-03 07:00:12 +08:00
|
|
|
<artifactId>grpc-netty-shaded</artifactId>
|
2016-06-25 09:18:06 +08:00
|
|
|
<version>${grpc.version}</version>
|
2018-12-07 04:03:25 +08:00
|
|
|
<scope>runtime</scope>
|
2016-06-25 09:18:06 +08:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.grpc</groupId>
|
|
|
|
<artifactId>grpc-protobuf</artifactId>
|
|
|
|
<version>${grpc.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.grpc</groupId>
|
|
|
|
<artifactId>grpc-stub</artifactId>
|
|
|
|
<version>${grpc.version}</version>
|
|
|
|
</dependency>
|
2018-10-18 02:49:30 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>javax.annotation</groupId>
|
|
|
|
<artifactId>javax.annotation-api</artifactId>
|
|
|
|
<version>1.2</version>
|
|
|
|
<scope>provided</scope> <!-- not needed at runtime -->
|
|
|
|
</dependency>
|
2017-06-06 07:32:18 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>io.grpc</groupId>
|
|
|
|
<artifactId>grpc-testing</artifactId>
|
|
|
|
<version>${grpc.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2018-05-18 06:48:45 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.protobuf</groupId>
|
|
|
|
<artifactId>protobuf-java-util</artifactId>
|
|
|
|
<version>${protobuf.version}</version>
|
|
|
|
</dependency>
|
2016-11-16 06:15:55 +08:00
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
2017-10-06 02:24:15 +08:00
|
|
|
<version>4.12</version>
|
2016-11-16 06:15:55 +08:00
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.mockito</groupId>
|
|
|
|
<artifactId>mockito-core</artifactId>
|
|
|
|
<version>1.9.5</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2016-06-25 09:18:06 +08:00
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<extensions>
|
|
|
|
<extension>
|
|
|
|
<groupId>kr.motd.maven</groupId>
|
|
|
|
<artifactId>os-maven-plugin</artifactId>
|
2017-07-19 01:44:37 +08:00
|
|
|
<version>1.5.0.Final</version>
|
2016-06-25 09:18:06 +08:00
|
|
|
</extension>
|
|
|
|
</extensions>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.xolstice.maven.plugins</groupId>
|
|
|
|
<artifactId>protobuf-maven-plugin</artifactId>
|
2018-04-05 23:34:52 +08:00
|
|
|
<version>0.5.1</version>
|
2016-06-25 09:18:06 +08:00
|
|
|
<configuration>
|
2018-05-18 06:48:45 +08:00
|
|
|
<protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
|
2016-06-25 09:18:06 +08:00
|
|
|
<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>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2017-06-30 05:20:24 +08:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
<version>1.4.1</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>enforce</id>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<requireUpperBoundDeps/>
|
|
|
|
</rules>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2016-06-25 09:18:06 +08:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</project>
|