Skip to content

Commit 0cf2ccb

Browse files
committed
exclude jackson 3 from springboot3 module
1 parent 63673ae commit 0cf2ccb

File tree

1 file changed

+28
-11
lines changed
  • aws-serverless-java-container-springboot3

1 file changed

+28
-11
lines changed

aws-serverless-java-container-springboot3/pom.xml

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3-
<!--
43
<parent>
54
<artifactId>aws-serverless-java-container</artifactId>
65
<groupId>com.amazonaws.serverless</groupId>
7-
<version>2.1.5-SNAPSHOT</version>
6+
<version>3.0.0-SNAPSHOT</version>
87
</parent>
9-
-->
108
<modelVersion>4.0.0</modelVersion>
119

1210
<groupId>com.amazonaws.serverless</groupId>
@@ -20,11 +18,6 @@
2018
<spring.version>6.2.8</spring.version>
2119
<springboot.version>3.5.8</springboot.version>
2220
<springsecurity.version>6.4.5</springsecurity.version>
23-
<junit.version>5.12.2</junit.version>
24-
<dependencyCheck.version>12.1.1</dependencyCheck.version>
25-
<maven.compiler.source>17</maven.compiler.source>
26-
<maven.compiler.target>17</maven.compiler.target>
27-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2821
</properties>
2922

3023
<dependencies>
@@ -37,12 +30,26 @@
3730
<dependency>
3831
<groupId>com.amazonaws.serverless</groupId>
3932
<artifactId>aws-serverless-java-container-core</artifactId>
40-
<version>2.1.5-SNAPSHOT</version>
33+
<version>3.0.0-SNAPSHOT</version>
34+
<exclusions>
35+
<exclusion>
36+
<groupId>tools.jackson.core</groupId>
37+
<artifactId>jackson-databind</artifactId>
38+
</exclusion>
39+
<exclusion>
40+
<groupId>tools.jackson.core</groupId>
41+
<artifactId>jackson-core</artifactId>
42+
</exclusion>
43+
<exclusion>
44+
<groupId>com.fasterxml.jackson.core</groupId>
45+
<artifactId>jackson-annotations</artifactId>
46+
</exclusion>
47+
</exclusions>
4148
</dependency>
4249
<dependency>
4350
<groupId>com.amazonaws.serverless</groupId>
4451
<artifactId>aws-serverless-java-container-core</artifactId>
45-
<version>2.1.5-SNAPSHOT</version>
52+
<version>3.0.0-SNAPSHOT</version>
4653
<classifier>tests</classifier>
4754
<type>test-jar</type>
4855
<scope>test</scope>
@@ -53,6 +60,17 @@
5360
<version>4.9.3</version>
5461
<scope>provided</scope>
5562
</dependency>
63+
<!-- Jackson 2 dependencies for SpringBoot3 compatibility -->
64+
<dependency>
65+
<groupId>com.fasterxml.jackson.core</groupId>
66+
<artifactId>jackson-core</artifactId>
67+
<version>2.18.2</version>
68+
</dependency>
69+
<dependency>
70+
<groupId>com.fasterxml.jackson.core</groupId>
71+
<artifactId>jackson-databind</artifactId>
72+
<version>2.18.2</version>
73+
</dependency>
5674
<dependency>
5775
<groupId>org.springframework</groupId>
5876
<artifactId>spring-webflux</artifactId>
@@ -180,7 +198,6 @@
180198
<dependency>
181199
<groupId>org.junit.jupiter</groupId>
182200
<artifactId>junit-jupiter</artifactId>
183-
<version>${junit.version}</version>
184201
<scope>test</scope>
185202
</dependency>
186203

0 commit comments

Comments
 (0)