Merge pull request #1922 from ryanjbaxter/fix-jackson-incompatibility

Pin version of Jackson since Fabric8 6.x is incompatible with Jackson 2.19.x
This commit is contained in:
Ryan Baxter
2025-05-22 16:04:22 -04:00
committed by GitHub
4 changed files with 47 additions and 0 deletions

View File

@@ -80,6 +80,14 @@
</maven-checkstyle-plugin.failsOnViolation>
<maven-checkstyle-plugin.includeTestSourceDirectory>true
</maven-checkstyle-plugin.includeTestSourceDirectory>
<!-- We are overriding the version of Jackson here because Fabric8 is
is not compatible with Jackson 2.19.0 which used in Spring Boot 3.5.x
We cannot use Jackson 2.19.0 until we can upgrade to Fabric8
7.3.0.
See https://github.com/fabric8io/kubernetes-client/issues/7036
See https://github.com/spring-projects/spring-boot/commit/e1ff4fbaf99bfcfdf0828ed07664b208a3ca6157
-->
<jackson.version>2.18.4</jackson.version>
</properties>
<modules>

View File

@@ -76,16 +76,19 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
<scope>test</scope>
</dependency>
<dependency>

View File

@@ -113,6 +113,24 @@
<artifactId>spring-cloud-kubernetes-test-support</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

View File

@@ -74,5 +74,23 @@
<artifactId>spring-cloud-kubernetes-test-support</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>