• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3  <modelVersion>4.0.0</modelVersion>
4  <groupId>io.grpc</groupId>
5  <artifactId>examples</artifactId>
6  <packaging>jar</packaging>
7  <!-- Feel free to delete the comment at the end of these lines. It is just
8       for safely updating the version in our release process. -->
9  <version>1.16.0-SNAPSHOT</version><!-- CURRENT_GRPC_VERSION -->
10  <name>examples</name>
11  <url>http://maven.apache.org</url>
12  <properties>
13    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
14    <grpc.version>1.16.0-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
15    <protobuf.version>3.5.1</protobuf.version>
16    <protoc.version>3.5.1-1</protoc.version>
17    <netty.tcnative.version>2.0.7.Final</netty.tcnative.version>
18    <!-- required for jdk9 -->
19    <maven.compiler.source>1.7</maven.compiler.source>
20    <maven.compiler.target>1.7</maven.compiler.target>
21  </properties>
22  <dependencies>
23    <dependency>
24      <groupId>io.grpc</groupId>
25      <artifactId>grpc-netty-shaded</artifactId>
26      <version>${grpc.version}</version>
27    </dependency>
28    <dependency>
29      <groupId>io.grpc</groupId>
30      <artifactId>grpc-protobuf</artifactId>
31      <version>${grpc.version}</version>
32    </dependency>
33    <dependency>
34      <groupId>io.grpc</groupId>
35      <artifactId>grpc-stub</artifactId>
36      <version>${grpc.version}</version>
37    </dependency>
38    <dependency>
39      <groupId>io.grpc</groupId>
40      <artifactId>grpc-alts</artifactId>
41      <version>${grpc.version}</version>
42    </dependency>
43    <dependency>
44      <groupId>io.grpc</groupId>
45      <artifactId>grpc-testing</artifactId>
46      <version>${grpc.version}</version>
47      <scope>test</scope>
48    </dependency>
49
50    <!-- Used in HelloWorldServerTls -->
51    <dependency>
52      <groupId>io.grpc</groupId>
53      <artifactId>grpc-netty</artifactId>
54      <version>${grpc.version}</version>
55    </dependency>
56    <dependency>
57      <groupId>io.netty</groupId>
58      <artifactId>netty-tcnative-boringssl-static</artifactId>
59      <version>${netty.tcnative.version}</version>
60    </dependency>
61
62    <dependency>
63      <groupId>com.google.api.grpc</groupId>
64      <artifactId>proto-google-common-protos</artifactId>
65      <version>1.0.0</version>
66    </dependency>
67    <dependency>
68      <groupId>com.google.protobuf</groupId>
69      <artifactId>protobuf-java-util</artifactId>
70      <version>${protobuf.version}</version>
71    </dependency>
72    <dependency>
73      <groupId>junit</groupId>
74      <artifactId>junit</artifactId>
75      <version>4.12</version>
76      <scope>test</scope>
77    </dependency>
78    <dependency>
79      <groupId>org.mockito</groupId>
80      <artifactId>mockito-core</artifactId>
81      <version>1.9.5</version>
82      <scope>test</scope>
83    </dependency>
84  </dependencies>
85  <build>
86    <extensions>
87      <extension>
88        <groupId>kr.motd.maven</groupId>
89        <artifactId>os-maven-plugin</artifactId>
90        <version>1.5.0.Final</version>
91      </extension>
92    </extensions>
93    <plugins>
94      <plugin>
95        <groupId>org.xolstice.maven.plugins</groupId>
96        <artifactId>protobuf-maven-plugin</artifactId>
97        <version>0.5.1</version>
98        <configuration>
99          <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
100          <pluginId>grpc-java</pluginId>
101          <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
102        </configuration>
103        <executions>
104          <execution>
105            <goals>
106              <goal>compile</goal>
107              <goal>compile-custom</goal>
108            </goals>
109          </execution>
110        </executions>
111      </plugin>
112      <plugin>
113        <groupId>org.apache.maven.plugins</groupId>
114        <artifactId>maven-enforcer-plugin</artifactId>
115        <version>1.4.1</version>
116        <executions>
117          <execution>
118            <id>enforce</id>
119            <goals>
120              <goal>enforce</goal>
121            </goals>
122            <configuration>
123              <rules>
124                <requireUpperBoundDeps/>
125              </rules>
126            </configuration>
127          </execution>
128        </executions>
129      </plugin>
130    </plugins>
131  </build>
132</project>
133