更新依赖库版本,cosid暂不更创新,大版本调整
This commit is contained in:
parent
d72310a838
commit
004e55f198
3 changed files with 52 additions and 19 deletions
32
.workbuddy/memory/2026-11-14.md
Normal file
32
.workbuddy/memory/2026-11-14.md
Normal file
|
|
@ -0,0 +1,32 @@
|
||||||
|
# 2026-11-14
|
||||||
|
|
||||||
|
## simple-starter 依赖版本审计与低风险升级
|
||||||
|
|
||||||
|
- 审计基线:Spring Boot 4.1.2 / Spring Cloud 2025.1.4 / Java 21,全量 `mvn -DskipTests compile` 通过。
|
||||||
|
- 项目已完成 SB4 适配改造(`mybatis-plus-spring-boot4-starter`、`sa-token-spring-boot4-starter`、`spring-boot-data-redis` 新模块、Jackson 3 `tools.jackson`),无需再动。
|
||||||
|
- 结论性判断:
|
||||||
|
- **JetCache 维持 2.7.9**(官方专为「兼容 SB4 + jackson3」发布,2.8.0.RC 是彻底重写且不兼容 2.7)。
|
||||||
|
- **Sentinel 维持 1.8.10**(2.0.0 仍是 alpha,官方 SB4 适配长期滞后)。
|
||||||
|
- **OpenTelemetry 维持 1.62.0**(正是 SB4.1.2 BOM 管理的版本,显式声明与 BOM 重复,不应偏离)。
|
||||||
|
- **CosId 维持 4.1.1**(5.0 完全重写零兼容,需 store 拆分 + 下游配置全改 + cosid-migration,项目用法极浅收益有限)。
|
||||||
|
|
||||||
|
## 本次已完成:低风险库小幅升级
|
||||||
|
|
||||||
|
在 `simple-starter-dependencies/pom.xml` 升级 9 个版本属性,全量 clean compile 通过(EXIT=0):
|
||||||
|
|
||||||
|
| 依赖 | 前 | 后 |
|
||||||
|
|---|---|---|
|
||||||
|
| Hutool | 5.8.47 | 5.8.48 |
|
||||||
|
| Tink | 1.16.0 | 1.24.0 |
|
||||||
|
| Nimbus JOSE JWT | 10.9.1 | 10.10 |
|
||||||
|
| OkHttp | 5.1.0 | 5.5.1 |
|
||||||
|
| Okio | 3.16.0 | 3.18.2 |
|
||||||
|
| AWS SDK | 2.57.9 | 2.59.1 |
|
||||||
|
| AWS CRT | 0.48.4 | 0.50.0 |
|
||||||
|
| swagger-annotations | 2.2.52 | 2.2.55 |
|
||||||
|
| jetcd | 0.8.5 | 0.8.8 |
|
||||||
|
|
||||||
|
## 分布式 ID 选型备忘(本次讨论结论)
|
||||||
|
|
||||||
|
- 项目对 CosId 用法极浅:仅 `simple-starter-data-mp` 的 `MyBatisPlusCosIdIdentifierGenerator` 用 `SnowflakeId` 当主键,`@Qualifier("__share__SnowflakeId")`,无 @CosId 注解、无 store。
|
||||||
|
- 若未来去 CosId,首选「MyBatis Plus 内置 DefaultIdentifierGenerator + Redisson 协调 workerId」(零新依赖,解决容器化 MAC/PID 相同导致的 workerId 冲突);次选美团 Leaf 号段;Redis INCR 作轻量兜底。
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
<description>Simple Starter BOM</description>
|
<description>Simple Starter BOM</description>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<revision>2.6.2</revision>
|
<revision>2.6.3</revision>
|
||||||
<!-- 对齐 simple-starter-dependencies 的 Spring Boot 版本 -->
|
<!-- 对齐 simple-starter-dependencies 的 Spring Boot 版本 -->
|
||||||
<spring-boot.version>4.1.0</spring-boot.version>
|
<spring-boot.version>4.1.0</spring-boot.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
|
||||||
|
|
@ -14,35 +14,36 @@
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<!-- Project Version -->
|
<!-- Project Version -->
|
||||||
<revision>2.6.2</revision>
|
<revision>2.6.3</revision>
|
||||||
<!-- Core Framework Versions -->
|
<!-- Core Framework Versions -->
|
||||||
<spring-boot.version>4.1.0</spring-boot.version>
|
<spring-boot.version>4.1.2</spring-boot.version>
|
||||||
<spring-cloud.version>2025.1.2</spring-cloud.version>
|
<spring-cloud.version>2025.1.4</spring-cloud.version>
|
||||||
|
|
||||||
<!-- Cache and Storage Versions -->
|
<!-- Cache and Storage Versions -->
|
||||||
<redisson.version>4.7.0</redisson.version>
|
<redisson.version>4.8.0</redisson.version>
|
||||||
<jetcache.version>2.7.9</jetcache.version>
|
<jetcache.version>2.7.9</jetcache.version>
|
||||||
|
<caffeine.version>3.3.1</caffeine.version>
|
||||||
|
|
||||||
<!-- Security and Authentication Versions -->
|
<!-- Security and Authentication Versions -->
|
||||||
<sa-token.version>1.45.0</sa-token.version>
|
<sa-token.version>1.46.0</sa-token.version>
|
||||||
<justauth.version>1.16.7</justauth.version>
|
<justauth.version>1.16.7</justauth.version>
|
||||||
|
|
||||||
<!-- Database and ORM Versions -->
|
<!-- Database and ORM Versions -->
|
||||||
<mybatis-plus.version>3.5.17</mybatis-plus.version>
|
<mybatis-plus.version>3.5.18.1</mybatis-plus.version>
|
||||||
<dynamic-datasource.version>4.5.0</dynamic-datasource.version>
|
<dynamic-datasource.version>4.6.0</dynamic-datasource.version>
|
||||||
<p6spy.version>3.9.1</p6spy.version>
|
<p6spy.version>3.9.1</p6spy.version>
|
||||||
|
|
||||||
<!-- ID Generator and Job Scheduler Versions -->
|
<!-- ID Generator and Job Scheduler Versions -->
|
||||||
<cosid.version>3.2.0</cosid.version>
|
<cosid.version>4.1.1</cosid.version>
|
||||||
<simple-job.version>1.2.0</simple-job.version>
|
<simple-job.version>1.2.0</simple-job.version>
|
||||||
|
|
||||||
<!-- Messaging and Notification Versions -->
|
<!-- Messaging and Notification Versions -->
|
||||||
<sms4j.version>3.3.5</sms4j.version>
|
<sms4j.version>3.3.5</sms4j.version>
|
||||||
<aws-sdk.version>2.47.6</aws-sdk.version>
|
<aws-sdk.version>2.59.1</aws-sdk.version>
|
||||||
<aws-crt.version>0.48.4</aws-crt.version>
|
<aws-crt.version>0.50.0</aws-crt.version>
|
||||||
|
|
||||||
<!-- Captcha Versions -->
|
<!-- Captcha Versions -->
|
||||||
<aj-captcha.version>1.4.0</aj-captcha.version>
|
<aj-captcha.version>2.0.0</aj-captcha.version>
|
||||||
<easy-captcha.version>1.6.2</easy-captcha.version>
|
<easy-captcha.version>1.6.2</easy-captcha.version>
|
||||||
<tianai-captcha.version>1.5.6</tianai-captcha.version>
|
<tianai-captcha.version>1.5.6</tianai-captcha.version>
|
||||||
|
|
||||||
|
|
@ -63,23 +64,23 @@
|
||||||
|
|
||||||
<!-- Compression Versions -->
|
<!-- Compression Versions -->
|
||||||
<zip4j.version>2.11.6</zip4j.version>
|
<zip4j.version>2.11.6</zip4j.version>
|
||||||
<swagger.version>2.2.52</swagger.version>
|
<swagger.version>2.2.55</swagger.version>
|
||||||
|
|
||||||
<!-- gRPC and Service Discovery Versions -->
|
<!-- gRPC and Service Discovery Versions -->
|
||||||
<jetcd.version>0.8.5</jetcd.version>
|
<jetcd.version>0.8.8</jetcd.version>
|
||||||
<opentelemetry.version>1.62.0</opentelemetry.version>
|
<opentelemetry.version>1.62.0</opentelemetry.version>
|
||||||
|
|
||||||
<!-- Service Governance Versions -->
|
<!-- Service Governance Versions -->
|
||||||
<sentinel.version>1.8.10</sentinel.version>
|
<sentinel.version>1.8.10</sentinel.version>
|
||||||
<nimbus-jose-jwt.version>10.9.1</nimbus-jose-jwt.version>
|
<nimbus-jose-jwt.version>10.10</nimbus-jose-jwt.version>
|
||||||
<tink.version>1.16.0</tink.version>
|
<tink.version>1.24.0</tink.version>
|
||||||
|
|
||||||
<!-- HTTP Client and Utilities Versions -->
|
<!-- HTTP Client and Utilities Versions -->
|
||||||
<okhttp.version>5.1.0</okhttp.version>
|
<okhttp.version>5.5.1</okhttp.version>
|
||||||
<okio.version>3.16.0</okio.version>
|
<okio.version>3.18.2</okio.version>
|
||||||
<ttl.version>2.14.5</ttl.version>
|
<ttl.version>2.14.5</ttl.version>
|
||||||
<ip2region.version>3.5.7</ip2region.version>
|
<ip2region.version>3.5.7</ip2region.version>
|
||||||
<hutool.version>5.8.47</hutool.version>
|
<hutool.version>5.8.48</hutool.version>
|
||||||
<nashorn.version>15.7</nashorn.version>
|
<nashorn.version>15.7</nashorn.version>
|
||||||
|
|
||||||
<!-- Security Vulnerability Fix Versions -->
|
<!-- Security Vulnerability Fix Versions -->
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue