|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <parent> |
| 6 | + <artifactId>lab-64-grpc-demo</artifactId> |
| 7 | + <groupId>cn.iocoder.springboot.labs</groupId> |
| 8 | + <version>1.0-SNAPSHOT</version> |
| 9 | + </parent> |
| 10 | + <modelVersion>4.0.0</modelVersion> |
| 11 | + |
| 12 | + <artifactId>lab-64-grpc-demo-user-service-api</artifactId> |
| 13 | + |
| 14 | + <properties> |
| 15 | + <!-- 依赖相关配置 --> |
| 16 | + <io.grpc.version>1.23.0</io.grpc.version> |
| 17 | + <!-- 插件相关配置 --> |
| 18 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 19 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 20 | + <os-maven-plugin.version>1.6.2</os-maven-plugin.version> |
| 21 | + <protobuf-maven-plugin.version>0.6.1</protobuf-maven-plugin.version> |
| 22 | + <grpc-starter-version>3.4.1</grpc-starter-version> |
| 23 | + </properties> |
| 24 | + |
| 25 | + <dependencies> |
| 26 | + <dependency> |
| 27 | + <groupId>io.grpc</groupId> |
| 28 | + <artifactId>grpc-protobuf</artifactId> |
| 29 | + <version>${io.grpc.version}</version> |
| 30 | + </dependency> |
| 31 | + <dependency> |
| 32 | + <groupId>io.grpc</groupId> |
| 33 | + <artifactId>grpc-stub</artifactId> |
| 34 | + <version>${io.grpc.version}</version> |
| 35 | + </dependency> |
| 36 | + </dependencies> |
| 37 | + |
| 38 | + <build> |
| 39 | + <extensions> |
| 40 | + <extension> |
| 41 | + <groupId>kr.motd.maven</groupId> |
| 42 | + <artifactId>os-maven-plugin</artifactId> |
| 43 | + <version>${os-maven-plugin.version}</version> |
| 44 | + </extension> |
| 45 | + </extensions> |
| 46 | + <plugins> |
| 47 | + <plugin> |
| 48 | + <groupId>org.xolstice.maven.plugins</groupId> |
| 49 | + <artifactId>protobuf-maven-plugin</artifactId> |
| 50 | + <version>${protobuf-maven-plugin.version}</version> |
| 51 | + <configuration> |
| 52 | + <protocArtifact> |
| 53 | + com.google.protobuf:protoc:3.9.1:exe:${os.detected.classifier} |
| 54 | + </protocArtifact> |
| 55 | + <pluginId>grpc-java</pluginId> |
| 56 | + <pluginArtifact> |
| 57 | + io.grpc:protoc-gen-grpc-java:1.23.0:exe:${os.detected.classifier} |
| 58 | + </pluginArtifact> |
| 59 | + </configuration> |
| 60 | + <executions> |
| 61 | + <execution> |
| 62 | + <goals> |
| 63 | + <goal>compile</goal> |
| 64 | + <goal>compile-custom</goal> |
| 65 | + </goals> |
| 66 | + </execution> |
| 67 | + </executions> |
| 68 | + </plugin> |
| 69 | + </plugins> |
| 70 | + </build> |
| 71 | + |
| 72 | +</project> |
0 commit comments