Skip to content

Commit 1e8483e

Browse files
denglimingclaude
andcommitted
Starter: Spring Boot 2.7.18 with Jackson 2.16 and SnakeYAML 2.6 for Redisson 4.x
Redisson 4.7 parses YAML configuration with SnakeYAML 2.x (TagInspector) and is built against Jackson 2.16, while the Spring Boot 2.7 BOM pins 1.30 and 2.13. The starter imports the Jackson BOM and pins SnakeYAML ahead of the Boot BOM so the newer versions win, and moves to the last 2.7 release, which supports SnakeYAML 2. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 4b8aa8e commit 1e8483e

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<maven-checkstyle-plugin.version>3.1.0</maven-checkstyle-plugin.version>
7171
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
7272
<maven-jar-plugin.version>2.4</maven-jar-plugin.version>
73-
<spring-boot.version>2.7.6</spring-boot.version>
73+
<spring-boot.version>2.7.18</spring-boot.version>
7474
<gson.version>2.8.9</gson.version>
7575
</properties>
7676

‎spring-boot-starter/pom.xml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,28 @@
88
</parent>
99

1010
<artifactId>spring-boot-starter</artifactId>
11+
12+
<properties>
13+
<jackson.version>2.16.1</jackson.version>
14+
<snakeyaml.version>2.6</snakeyaml.version>
15+
</properties>
1116
<name>SpringBootStarter</name>
1217

1318
<dependencyManagement>
1419
<dependencies>
20+
<!-- Redisson 4.x needs Jackson 2.16+ and SnakeYAML 2.x; declared before the Boot BOM so they win -->
21+
<dependency>
22+
<groupId>com.fasterxml.jackson</groupId>
23+
<artifactId>jackson-bom</artifactId>
24+
<version>${jackson.version}</version>
25+
<type>pom</type>
26+
<scope>import</scope>
27+
</dependency>
28+
<dependency>
29+
<groupId>org.yaml</groupId>
30+
<artifactId>snakeyaml</artifactId>
31+
<version>${snakeyaml.version}</version>
32+
</dependency>
1533
<dependency>
1634
<groupId>org.springframework.boot</groupId>
1735
<artifactId>spring-boot-dependencies</artifactId>

0 commit comments

Comments
 (0)