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>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. --> 9 <version>1.56.1-SNAPSHOT</version><!-- CURRENT_GRPC_VERSION --> 10 <name>example-tls</name> 11 <url>https://github.com/grpc/grpc-java</url> 12 13 <properties> 14 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 15 <grpc.version>1.56.1-SNAPSHOT</grpc.version><!-- CURRENT_GRPC_VERSION --> 16 <protoc.version>3.22.3</protoc.version> 17 <!-- required for jdk9 --> 18 <maven.compiler.source>1.8</maven.compiler.source> 19 <maven.compiler.target>1.8</maven.compiler.target> 20 </properties> 21 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 34 <dependencies> 35 <dependency> 36 <groupId>io.grpc</groupId> 37 <artifactId>grpc-protobuf</artifactId> 38 </dependency> 39 <dependency> 40 <groupId>io.grpc</groupId> 41 <artifactId>grpc-stub</artifactId> 42 </dependency> 43 <dependency> 44 <groupId>org.apache.tomcat</groupId> 45 <artifactId>annotations-api</artifactId> 46 <version>6.0.53</version> 47 <scope>provided</scope> <!-- not needed at runtime --> 48 </dependency> 49 <dependency> 50 <groupId>io.grpc</groupId> 51 <artifactId>grpc-netty-shaded</artifactId> 52 </dependency> 53 </dependencies> 54 55 <build> 56 <extensions> 57 <extension> 58 <groupId>kr.motd.maven</groupId> 59 <artifactId>os-maven-plugin</artifactId> 60 <version>1.7.1</version> 61 </extension> 62 </extensions> 63 <plugins> 64 <plugin> 65 <groupId>org.xolstice.maven.plugins</groupId> 66 <artifactId>protobuf-maven-plugin</artifactId> 67 <version>0.6.1</version> 68 <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> 103