91 lines
3.0 KiB
XML
91 lines
3.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<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/xsd/maven-4.0.0.xsd">
|
||
<parent>
|
||
<groupId>cn.iocoder.cloud</groupId>
|
||
<artifactId>yudao-module-grpc</artifactId>
|
||
<version>${revision}</version>
|
||
</parent>
|
||
<modelVersion>4.0.0</modelVersion>
|
||
<artifactId>yudao-module-grpc-lib</artifactId>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>${project.artifactId}</name>
|
||
<description>
|
||
grpc 模块 LIB,生成GRPC的proto文件
|
||
</description>
|
||
|
||
<properties>
|
||
<!--grpc版本号-->
|
||
<grpc.version>1.64.0</grpc.version>
|
||
<!--protobuf 版本号-->
|
||
<protobuf.version>3.25.3</protobuf.version>
|
||
</properties>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>io.grpc</groupId>
|
||
<artifactId>grpc-stub</artifactId>
|
||
<version>${grpc.version}</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>io.grpc</groupId>
|
||
<artifactId>grpc-protobuf</artifactId>
|
||
<version>${grpc.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.grpc</groupId>
|
||
<artifactId>grpc-core</artifactId>
|
||
<version>1.64.0</version> <!-- 确保版本一致 -->
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.grpc</groupId>
|
||
<artifactId>grpc-netty-shaded</artifactId>
|
||
<version>1.64.0</version> <!-- 确保版本一致 -->
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>javax.annotation</groupId>
|
||
<artifactId>javax.annotation-api</artifactId>
|
||
<version>1.3.2</version>
|
||
</dependency>
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
||
<extensions>
|
||
<extension>
|
||
<groupId>kr.motd.maven</groupId>
|
||
<artifactId>os-maven-plugin</artifactId>
|
||
<version>1.5.0.Final</version>
|
||
</extension>
|
||
</extensions>
|
||
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.xolstice.maven.plugins</groupId>
|
||
<artifactId>protobuf-maven-plugin</artifactId>
|
||
<version>0.5.1</version>
|
||
<configuration>
|
||
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}
|
||
</protocArtifact>
|
||
<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>
|
||
</plugins>
|
||
</build>
|
||
|
||
</project>
|