blob: 4fdb93f869acf76140bbc5959a6edf6aeef97913 [file] [log] [blame]
ZHANG Dapeng3202fcc2018-12-06 12:03:25 -08001<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>example-tls</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. -->
Sergii Tkachenko558b5b02023-06-13 15:39:30 -07009 <version>1.56.1-SNAPSHOT</version><!-- CURRENT_GRPC_VERSION -->
ZHANG Dapeng3202fcc2018-12-06 12:03:25 -080010 <name>example-tls</name>
Jihun Cho40398472019-01-02 09:56:22 -080011 <url>https://github.com/grpc/grpc-java</url>
Jihun Choef6b6162019-02-01 14:00:05 -080012
ZHANG Dapeng3202fcc2018-12-06 12:03:25 -080013 <properties>
14 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Sergii Tkachenko558b5b02023-06-13 15:39:30 -070015 <grpc.version>1.56.1-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION -->
Eric Anderson1551cc72023-04-13 08:52:20 -070016 <protoc.version>3.22.3</protoc.version>
ZHANG Dapeng3202fcc2018-12-06 12:03:25 -080017 <!-- required for jdk9 -->
Larry Safran19eab292023-02-15 18:33:44 +000018 <maven.compiler.source>1.8</maven.compiler.source>
19 <maven.compiler.target>1.8</maven.compiler.target>
ZHANG Dapeng3202fcc2018-12-06 12:03:25 -080020 </properties>
Jihun Choef6b6162019-02-01 14:00:05 -080021
22 <dependencyManagement>
23 <dependencies>
24 <dependency>
25 <groupId>io.grpc</groupId>
26 <artifactId>grpc-bom</artifactId>
27 <version>${grpc.version}</version>
28 <type>pom</type>
29 <scope>import</scope>
30 </dependency>
31 </dependencies>
32 </dependencyManagement>
33
ZHANG Dapeng3202fcc2018-12-06 12:03:25 -080034 <dependencies>
35 <dependency>
36 <groupId>io.grpc</groupId>
37 <artifactId>grpc-protobuf</artifactId>
ZHANG Dapeng3202fcc2018-12-06 12:03:25 -080038 </dependency>
39 <dependency>
40 <groupId>io.grpc</groupId>
41 <artifactId>grpc-stub</artifactId>
ZHANG Dapeng3202fcc2018-12-06 12:03:25 -080042 </dependency>
43 <dependency>
Eric Anderson6a50a632020-04-29 16:46:00 -070044 <groupId>org.apache.tomcat</groupId>
45 <artifactId>annotations-api</artifactId>
46 <version>6.0.53</version>
ZHANG Dapeng3202fcc2018-12-06 12:03:25 -080047 <scope>provided</scope> <!-- not needed at runtime -->
48 </dependency>
49 <dependency>
50 <groupId>io.grpc</groupId>
Terry Wilson7bd07972022-06-24 10:47:27 -070051 <artifactId>grpc-netty-shaded</artifactId>
ZHANG Dapeng3202fcc2018-12-06 12:03:25 -080052 </dependency>
53 </dependencies>
Jihun Choef6b6162019-02-01 14:00:05 -080054
ZHANG Dapeng3202fcc2018-12-06 12:03:25 -080055 <build>
56 <extensions>
57 <extension>
58 <groupId>kr.motd.maven</groupId>
59 <artifactId>os-maven-plugin</artifactId>
Eric Anderson51913f62023-02-02 14:35:54 -080060 <version>1.7.1</version>
ZHANG Dapeng3202fcc2018-12-06 12:03:25 -080061 </extension>
62 </extensions>
63 <plugins>
64 <plugin>
65 <groupId>org.xolstice.maven.plugins</groupId>
66 <artifactId>protobuf-maven-plugin</artifactId>
ST-DDTd5b63e92019-08-20 23:35:03 +020067 <version>0.6.1</version>
ZHANG Dapeng3202fcc2018-12-06 12:03:25 -080068 <configuration>
69 <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact>
70 <pluginId>grpc-java</pluginId>
71 <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
72 </configuration>
73 <executions>
74 <execution>
75 <goals>
76 <goal>compile</goal>
77 <goal>compile-custom</goal>
78 </goals>
79 </execution>
80 </executions>
81 </plugin>
82 <plugin>
83 <groupId>org.apache.maven.plugins</groupId>
84 <artifactId>maven-enforcer-plugin</artifactId>
85 <version>1.4.1</version>
86 <executions>
87 <execution>
88 <id>enforce</id>
89 <goals>
90 <goal>enforce</goal>
91 </goals>
92 <configuration>
93 <rules>
94 <requireUpperBoundDeps/>
95 </rules>
96 </configuration>
97 </execution>
98 </executions>
99 </plugin>
100 </plugins>
101 </build>
102</project>