148 lines
5.4 KiB
XML
148 lines
5.4 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">
|
||
<modelVersion>4.0.0</modelVersion>
|
||
<parent>
|
||
<groupId>reliable.simple.starter</groupId>
|
||
<artifactId>simple-starter-cluster</artifactId>
|
||
<version>${revision}</version>
|
||
</parent>
|
||
|
||
<artifactId>simple-starter-cluster-grpc</artifactId>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>${project.artifactId}</name>
|
||
<description>gRPC 模块 - etcd 服务注册发现 + grpc-spring-boot-starter + Sa-Token 鉴权拦截器</description>
|
||
|
||
<dependencies>
|
||
<!-- jetcd:etcd 官方 Java 客户端,支持 lease/keepalive/watch -->
|
||
<dependency>
|
||
<groupId>io.etcd</groupId>
|
||
<artifactId>jetcd-core</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Spring Boot 4.1 官方 gRPC Server Starter(替代已归档的 net.devh:grpc-spring-boot-starter) -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-grpc-server</artifactId>
|
||
</dependency>
|
||
|
||
<!-- gRPC Health Protocol(grpc.health.v1,供 grpc-health-probe 探针) -->
|
||
<dependency>
|
||
<groupId>io.grpc</groupId>
|
||
<artifactId>grpc-services</artifactId>
|
||
</dependency>
|
||
|
||
<!-- gRPC netty shaded(server 传输层,避免 Netty 版本冲突) -->
|
||
<dependency>
|
||
<groupId>io.grpc</groupId>
|
||
<artifactId>grpc-netty-shaded</artifactId>
|
||
</dependency>
|
||
|
||
<!-- gRPC 核心(NameResolverProvider 依赖) -->
|
||
<dependency>
|
||
<groupId>io.grpc</groupId>
|
||
<artifactId>grpc-api</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.grpc</groupId>
|
||
<artifactId>grpc-core</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.grpc</groupId>
|
||
<artifactId>grpc-stub</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 链路追踪模块(提供 OpenTelemetry SDK,gRPC 和 Web 应用共享) -->
|
||
<dependency>
|
||
<groupId>reliable.simple.starter</groupId>
|
||
<artifactId>simple-starter-trace</artifactId>
|
||
</dependency>
|
||
|
||
<!-- gRPC OpenTelemetry 链路追踪(trace 贯穿"网关 -> 用户中心 -> 门店服务") -->
|
||
<dependency>
|
||
<groupId>io.grpc</groupId>
|
||
<artifactId>grpc-opentelemetry</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Sa-Token core(GrpcAuthInterceptor 依赖,运行时由业务服务的 sa-token-spring-boot-starter 提供) -->
|
||
<dependency>
|
||
<groupId>cn.dev33</groupId>
|
||
<artifactId>sa-token-core</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Lombok -->
|
||
<dependency>
|
||
<groupId>org.projectlombok</groupId>
|
||
<artifactId>lombok</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
|
||
<!-- Spring Boot 自动装配 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
|
||
<!-- 单元测试 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
<!-- Sentinel 限流熔断(optional,仅 governance 功能启用时需要) -->
|
||
<dependency>
|
||
<groupId>com.alibaba.csp</groupId>
|
||
<artifactId>sentinel-core</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.alibaba.csp</groupId>
|
||
<artifactId>sentinel-transport-common</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.alibaba.csp</groupId>
|
||
<artifactId>sentinel-parameter-flow-control</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
|
||
<!-- Ed25519 服务身份 token(optional,仅 identity 功能启用时需要) -->
|
||
<dependency>
|
||
<groupId>com.nimbusds</groupId>
|
||
<artifactId>nimbus-jose-jwt</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.google.crypto.tink</groupId>
|
||
<artifactId>tink</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
|
||
<!-- Jackson 3(optional,governance 规则反序列化需要;版本由 Spring Boot BOM 管理) -->
|
||
<dependency>
|
||
<groupId>tools.jackson.core</groupId>
|
||
<artifactId>jackson-databind</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<build>
|
||
<plugins>
|
||
<!-- 覆盖父 pom 的 surefire skip=true,允许本模块执行测试 -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-surefire-plugin</artifactId>
|
||
<configuration>
|
||
<skip>false</skip>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</project>
|