Skip to content

Spring Cloud Tencent 版本管理

Haotian Zhang edited this page Dec 16, 2024 · 171 revisions

目录

Maven Repository 页面

Mvn repository

版本号规则说明

背景

Spring Cloud Tencent 为实现了 Spring Cloud 标准微服务 SPI 的服务治理组件,因此其不包含服务调用组件相关的功能。换句话说,用户自身的应用本身可能带有服务调用组件,Spring Cloud Tencent 能提供基于 Spring Cloud 标准接口的服务调用中的服务治理功能。因为 Spring Cloud Tencent 实现的是 Spring Cloud 定义的标准接口,而开源的 Spring Cloud 有不同版本的提供,因此 Spring Cloud Tencent 针对不同版本的 Spring Cloud 也需要对应的支持。 与此同时,Spring Cloud Tencent 也存在自身的版本规划,以便用户根据自身应用和北极星服务端版本,选择对应的 Spring Cloud Tencent 版本。所以需要该文档指定 Spring Cloud Tencent 与 Spring Cloud 的版本对应关系。

版本适配规范

Spring Cloud Tecnent 每1-2年会发布一个大版本(前2位版本号),例如:2024年发布 Spring Cloud Tencent 2.0。Spring Cloud Tencent 对 Spring Cloud 开源版本的适配策略: 默认适配发布年份前两年的 Spring Cloud 开源版本,例如:2024年发布的 Spring Cloud Tencent 2.0 默认适配 Spring Cloud 2022。 如有必要,最早适配发布年份前五年的 Spring Cloud 开源版本,例如:2024年发布的 Spring Cloud Tencent 2.0 最早适配 Spring Cloud Hoxton。 在每个版本EOS之前(不含EOS当年),按需适配上一年到发布年份的 Spring Cloud 开源版本。

例如2024年发布的 Spring Cloud Tencent 2.0:

Spring Cloud 版本 2024年 2025年 2026年 2027年
Hoxton 按需适配 按需适配 按需适配 按需适配
2020 按需适配 按需适配 按需适配 按需适配
2021 按需适配 按需适配 按需适配 按需适配
2022 默认适配 默认适配 默认适配 默认适配
2023 按需适配 按需适配 按需适配 按需适配
2024 - 按需适配 按需适配 按需适配
2025(如有) - - 按需适配 按需适配
2026(如有) - - - 不适配

规则

Spring Cloud Tencent 采用4位版本号,即 a.b.c.d-xyz,其中每位版本号含义如下: a.b:和集成的北极星服务端的前两位版本号保持一致。 c:需求开发版本号。如果有需求开发,增加此版本号。 d:缺陷修复版本号。如果仅有缺陷修复,增加此版本号。 xyz:和集成的 Spring Cloud 版本号保持一致。 示例: 版本号 2.0.0.0-2022.0.5 表示对接 2.0.x.x 版本的北极星服务端和 Spring Cloud 2022.0.5 版本。 如果 Spring Cloud Tencent 有需求开发,北极星服务端没有变化,版本号变为 2.0.1.0-2022.0.5。 如果 Spring Cloud Tencent 有缺陷修复,北极星服务端没有变化,版本号变为 2.0.1.1-2022.0.5。 如果 Spring Cloud Tencent 没有变化,北极星服务端需求开发版本号变化:版本号变为 2.0.2.0-2022.0.5。 如果 Spring Cloud Tencent 没有变化,北极星服务端缺陷修复版本号变化:版本号变为 2.0.2.1-2022.0.5。

设计初衷

  • Spring CloudSpring BootSpring Framework 版本之间有严格的兼容性要求。所以在版本号中引入 Spring Cloud 版本是为了一眼就能识别 Spring Cloud 版本,便于开发者引入正确的版本。
  • SCT 自身版本号在各个 Spring Cloud 系列中严格一致,这样开发者在升级 Spring Cloud 版本时,能够清晰明了升级对应的 SCT 版本号。

最佳实践

开发者应对照组件兼容性列表,根据自身应用的 Spring Boot & Spring Framework 版本选择兼容的 Spring Cloud 版本,再选择推荐的 SCT 版本。

版本关系列表

Spring Cloud 2023

Spring Cloud Tencent 版本 支持 Spring Boot 版本 Spring Cloud 版本 Spring Boot 版本 Spring Framework 版本 版本发布说明
1.13.2-2023.0.0(推荐) >=3.2.0 2023.0.0 3.2.3 6.1.4 Release Note

Spring Cloud 2022

Spring Cloud Tencent 版本 支持 Spring Boot 版本 Spring Cloud 版本 Spring Boot 版本 Spring Framework 版本 版本发布说明
2.0.0.0-2022.0.5(推荐) >=3.0.0 2022.0.5 3.1.12 6.0.22 Release Note
1.13.2-2022.0.4 >=3.0.0 2022.0.4 3.1.7 6.0.16 Release Note
1.12.4-2022.0.4 >=3.0.0 2022.0.4 3.1.2 6.0.11 Release Note
1.11.9-2022.0.1 >=3.0.0 2022.0.1 3.0.4 6.0.7 Release Note
1.10.3-2022.0.1 >=3.0.0 2022.0.1 3.0.4 6.0.7 Release Note
1.9.0-2022.0.1 >=3.0.0 2022.0.1 3.0.2 6.0.4 Release Note
1.8.5-2022.0.1 >=3.0.0 2022.0.1 3.0.2 6.0.4 Release Note

Spring Cloud 2021

Spring Cloud Tencent 版本 支持 Spring Boot 版本 Spring Cloud 版本 Spring Boot 版本 Spring Framework 版本 版本发布说明
2.0.0.0-2021.0.9(推荐) >=2.6.1 & <3.0.0-M1 2021.0.9 2.7.18 5.3.31 Release Note
1.13.2-2021.0.9 >=2.6.1 & <3.0.0-M1 2021.0.9 2.7.18 5.3.31 Release Note
1.12.4-2021.0.8 >=2.6.1 & <3.0.0-M1 2021.0.8 2.6.15 5.3.29 Release Note
1.11.9-2021.0.6 >=2.6.1 & <3.0.0-M1 2021.0.6 2.6.14 5.3.25 Release Note
1.10.3-2021.0.6 >=2.6.1 & <3.0.0-M1 2021.0.6 2.6.14 5.3.25 Release Note
1.9.1-2021.0.5 >=2.6.1 & <3.0.0-M1 2021.0.5 2.6.14 5.3.25 Release Note
1.8.3-2021.0.3 >=2.6.1 & <3.0.0-M1 2021.0.3 2.6.9 5.3.21 Release Note
1.7.0-2021.0.3 >=2.6.1 & <3.0.0-M1 2021.0.3 2.6.9 5.3.21 Release Note
1.6.0-2021.0.3 >=2.6.1 & <3.0.0-M1 2021.0.3 2.6.9 5.3.21 Release Note
1.5.3-2021.0.2 >=2.6.1 & <3.0.0-M1 2021.0.2 2.6.7 5.3.21 Release Note

Spring Cloud 2020

Spring Cloud Tencent 版本 支持 Spring Boot 版本 Spring Cloud 版本 Spring Boot 版本 Spring Framework 版本 版本发布说明
2.0.0.0-2020.0.6(推荐) >=2.4.0.M1 & <2.6.0-M1 2020.0.6 2.4.13 5.3.25 Release Note
1.13.2-2020.0.6 >=2.4.0.M1 & <2.6.0-M1 2020.0.6 2.4.13 5.3.25 Release Note
1.12.5-2020.0.6 >=2.4.0.M1 & <2.6.0-M1 2020.0.6 2.4.13 5.3.25 Release Note
1.11.9-2020.0.6 >=2.4.0.M1 & <2.6.0-M1 2020.0.6 2.4.13 5.3.25 Release Note
1.10.3-2020.0.6 >=2.4.0.M1 & <2.6.0-M1 2020.0.6 2.4.13 5.3.25 Release Note
1.9.1-2020.0.5 >=2.4.0.M1 & <2.6.0-M1 2020.0.5 2.4.13 5.3.21 Release Note
1.8.7-2020.0.5 >=2.4.0.M1 & <2.6.0-M1 2020.0.5 2.4.13 5.3.21 Release Note
1.7.0-2020.0.5 >=2.4.0.M1 & <2.6.0-M1 2020.0.5 2.4.13 5.3.21 Release Note
1.6.0-2020.0.5 >=2.4.0.M1 & <2.6.0-M1 2020.0.5 2.4.13 5.3.21 Release Note
1.5.3-2020.0.5 >=2.4.0.M1 & <2.6.0-M1 2020.0.5 2.4.13 5.3.21 Release Note

Spring Cloud Hoxton

Spring Cloud Tencent 版本 支持 Spring Boot 版本 Spring Cloud 版本 Spring Boot 版本 Spring Framework 版本 版本发布说明
1.13.4-Hoxton.SR12(推荐) >=2.2.0.RELEASE & <2.4.0.M1 Hoxton.SR12 2.3.12.RELEASE 5.2.25.RELEASE Release Note
1.12.4-Hoxton.SR12 >=2.2.0.RELEASE & <2.4.0.M1 Hoxton.SR12 2.3.12.RELEASE 5.2.25.RELEASE Release Note
1.11.10-Hoxton.SR12 >=2.2.0.RELEASE & <2.4.0.M1 Hoxton.SR12 2.3.12.RELEASE 5.2.22.RELEASE Release Note
1.9.1-Hoxton.SR12 >=2.2.0.RELEASE & <2.4.0.M1 Hoxton.SR12 2.3.12.RELEASE 5.2.22.RELEASE Release Note
1.8.4-Hoxton.SR12 >=2.2.0.RELEASE & <2.4.0.M1 Hoxton.SR12 2.3.12.RELEASE 5.2.22.RELEASE Release Note
1.7.1-Hoxton.SR12 >=2.2.0.RELEASE & <2.4.0.M1 Hoxton.SR12 2.3.12.RELEASE 5.2.22.RELEASE Release Note
1.6.0-Hoxton.SR12 >=2.2.0.RELEASE & <2.4.0.M1 Hoxton.SR12 2.3.12.RELEASE 5.2.22.RELEASE Release Note
1.5.3-Hoxton.SR9 >=2.2.0.RELEASE & <2.4.0.M1 Hoxton.SR9 2.3.2.RELEASE 5.2.15.RELEASE Release Note

Spring Cloud Greenwich (EOS)

Spring Cloud Tencent 版本 Spring Cloud 版本 Spring Boot 版本 Spring Framework版本 版本发布说明
1.5.4-Greenwich.SR6 Greenwich.SR6 2.1.13.RELEASE 5.1.14.RELEASE Release Note
Clone this wiki locally