Skip to content

Commit f1c73cb

Browse files
committed
Pin version of Jackson since Fabric8 6.x is incompatible with Jackson 2.19.x
1 parent 798bdb6 commit f1c73cb

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@
8080
</maven-checkstyle-plugin.failsOnViolation>
8181
<maven-checkstyle-plugin.includeTestSourceDirectory>true
8282
</maven-checkstyle-plugin.includeTestSourceDirectory>
83+
<!-- We are overriding the version of Jackson here because Fabric8 is
84+
is not compatible with Jackson 2.19.0 which used in Spring Boot 3.5.x
85+
We cannot use Jackson 2.19.0 until we can upgrade to Fabric8
86+
7.3.0.
87+
See https://github.com/fabric8io/kubernetes-client/issues/7036
88+
See https://github.com/spring-projects/spring-boot/commit/e1ff4fbaf99bfcfdf0828ed07664b208a3ca6157
89+
-->
90+
<jackson.version>2.18.4</jackson.version>
8391
</properties>
8492

8593
<modules>

spring-cloud-kubernetes-fabric8-config/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,19 @@
7676
<dependency>
7777
<groupId>com.fasterxml.jackson.core</groupId>
7878
<artifactId>jackson-databind</artifactId>
79+
<version>${jackson.version}</version>
7980
<scope>test</scope>
8081
</dependency>
8182
<dependency>
8283
<groupId>com.fasterxml.jackson.core</groupId>
8384
<artifactId>jackson-core</artifactId>
85+
<version>${jackson.version}</version>
8486
<scope>test</scope>
8587
</dependency>
8688
<dependency>
8789
<groupId>com.fasterxml.jackson.core</groupId>
8890
<artifactId>jackson-annotations</artifactId>
91+
<version>${jackson.version}</version>
8992
<scope>test</scope>
9093
</dependency>
9194
<dependency>

spring-cloud-kubernetes-fabric8-loadbalancer/pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,23 @@
7474
<artifactId>spring-cloud-kubernetes-test-support</artifactId>
7575
<scope>test</scope>
7676
</dependency>
77+
<dependency>
78+
<groupId>com.fasterxml.jackson.core</groupId>
79+
<artifactId>jackson-databind</artifactId>
80+
<version>${jackson.version}</version>
81+
<scope>test</scope>
82+
</dependency>
83+
<dependency>
84+
<groupId>com.fasterxml.jackson.core</groupId>
85+
<artifactId>jackson-core</artifactId>
86+
<version>${jackson.version}</version>
87+
<scope>test</scope>
88+
</dependency>
89+
<dependency>
90+
<groupId>com.fasterxml.jackson.core</groupId>
91+
<artifactId>jackson-annotations</artifactId>
92+
<version>${jackson.version}</version>
93+
<scope>test</scope>
94+
</dependency>
7795
</dependencies>
7896
</project>

0 commit comments

Comments
 (0)