Skip to content

Commit ee0d1d9

Browse files
committed
Update Jackson dependencies to tools.jackson 3.0.3
Migrates all Jackson dependencies from com.fasterxml.jackson to tools.jackson and updates the version to 3.0.3 across all modules. Refactors code to use new package names and updates bean definitions accordingly. This ensures compatibility with the latest Jackson releases and resolves potential dependency conflicts.
1 parent a6bc709 commit ee0d1d9

File tree

9 files changed

+30
-29
lines changed

9 files changed

+30
-29
lines changed

aem-commons/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@
5050
<version>3.2.3</version>
5151
</dependency>
5252
<dependency>
53-
<groupId>com.fasterxml.jackson.core</groupId>
53+
<groupId>tools.jackson.core</groupId>
5454
<artifactId>jackson-databind</artifactId>
55-
<version>2.20.1</version>
5655
</dependency>
5756
<dependency>
5857
<groupId>com.viglet.turing</groupId>

aem/aem-plugin/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@
4848
<scope>compile</scope>
4949
</dependency>
5050
<dependency>
51-
<groupId>com.fasterxml.jackson.datatype</groupId>
51+
<groupId>tools.jackson.datatype</groupId>
5252
<artifactId>jackson-datatype-hibernate7</artifactId>
53-
<version>2.20.1</version>
5453
</dependency>
5554
<dependency>
5655
<groupId>io.swagger.core.v3</groupId>

aem/aem-plugin/src/main/java/com/viglet/dumont/connector/plugin/aem/api/DumAemPathList.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
package com.viglet.dumont.connector.plugin.aem.api;
22

33
import java.util.List;
4+
45
import com.viglet.dumont.connector.aem.commons.bean.DumAemEvent;
6+
7+
import lombok.AllArgsConstructor;
58
import lombok.Builder;
69
import lombok.Getter;
10+
import lombok.NoArgsConstructor;
711

812
@Getter
913
@Builder
14+
@NoArgsConstructor
15+
@AllArgsConstructor
1016
public class DumAemPathList {
1117
private List<String> paths;
1218
private DumAemEvent event;

commons/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@
8585
<version>2.0.17</version>
8686
</dependency>
8787
<dependency>
88-
<groupId>com.fasterxml.jackson.core</groupId>
88+
<groupId>tools.jackson.core</groupId>
8989
<artifactId>jackson-databind</artifactId>
90-
<version>2.20.1</version>
9190
</dependency>
9291
<dependency>
9392
<groupId>org.projectlombok</groupId>

connector/connector-app/pom.xml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@
3333
<groupId>com.viglet.dumont</groupId>
3434
<artifactId>dumont-spring</artifactId>
3535
<exclusions>
36-
<exclusion>
37-
<groupId>com.fasterxml.jackson.core</groupId>
38-
<artifactId>jackson-databind</artifactId>
39-
</exclusion>
4036
<exclusion>
4137
<groupId>commons-logging</groupId>
4238
<artifactId>commons-logging</artifactId>
@@ -112,12 +108,6 @@
112108
<dependency>
113109
<groupId>com.viglet.dumont.connector</groupId>
114110
<artifactId>connector-commons</artifactId>
115-
<exclusions>
116-
<exclusion>
117-
<groupId>com.fasterxml.jackson.core</groupId>
118-
<artifactId>jackson-databind</artifactId>
119-
</exclusion>
120-
</exclusions>
121111
</dependency>
122112
<dependency>
123113
<groupId>org.apache.activemq</groupId>
@@ -131,9 +121,8 @@
131121
</exclusions>
132122
</dependency>
133123
<dependency>
134-
<groupId>com.fasterxml.jackson.datatype</groupId>
124+
<groupId>tools.jackson.datatype</groupId>
135125
<artifactId>jackson-datatype-hibernate7</artifactId>
136-
<version>2.20.1</version>
137126
</dependency>
138127
<dependency>
139128
<groupId>org.jetbrains</groupId>
@@ -163,8 +152,8 @@
163152
<version>9.2.3</version>
164153
</dependency>
165154
<dependency>
166-
<groupId>com.fasterxml.jackson.core</groupId>
167-
<artifactId>jackson-databind</artifactId>
155+
<groupId>tools.jackson.core</groupId>
156+
<artifactId>jackson-core</artifactId>
168157
</dependency>
169158
</dependencies>
170159
<dependencyManagement>

connector/connector-app/src/main/java/com/viglet/dumont/connector/DumConnectorApplication.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
import org.springframework.scheduling.annotation.EnableScheduling;
1212
import org.springframework.web.filter.CharacterEncodingFilter;
1313

14-
import com.fasterxml.jackson.databind.Module;
15-
import com.fasterxml.jackson.datatype.hibernate7.Hibernate7Module;
16-
1714
import lombok.extern.slf4j.Slf4j;
15+
import tools.jackson.databind.JacksonModule;
16+
import tools.jackson.datatype.hibernate7.Hibernate7Module;
1817

1918
@Slf4j
2019
@SpringBootApplication(exclude = { MongoAutoConfiguration.class })
@@ -40,7 +39,7 @@ FilterRegistrationBean<CharacterEncodingFilter> filterRegistrationBean() {
4039
}
4140

4241
@Bean
43-
Module hibernate7Module() {
42+
JacksonModule hibernate7Module() {
4443
return new Hibernate7Module();
4544
}
4645
}

pom.xml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<properties>
3636
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3737
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
38+
<jackson.version>3.0.3</jackson.version>
3839
<spring-boot.version>4.0.1</spring-boot.version>
3940
<sonar.organization>viglet</sonar.organization>
4041
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
@@ -345,9 +346,19 @@
345346
<version>2.25.3</version>
346347
</dependency>
347348
<dependency>
348-
<groupId>com.fasterxml.jackson.core</groupId>
349+
<groupId>tools.jackson.core</groupId>
349350
<artifactId>jackson-databind</artifactId>
350-
<version>2.20.1</version>
351+
<version>${jackson.version}</version>
352+
</dependency>
353+
<dependency>
354+
<groupId>tools.jackson.core</groupId>
355+
<artifactId>jackson-core</artifactId>
356+
<version>${jackson.version}</version>
357+
</dependency>
358+
<dependency>
359+
<groupId>tools.jackson.datatype</groupId>
360+
<artifactId>jackson-datatype-hibernate7</artifactId>
361+
<version>${jackson.version}</version>
351362
</dependency>
352363
<dependency>
353364
<groupId>org.apache.httpcomponents.client5</groupId>

spring/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<scope>compile</scope>
4646
</dependency>
4747
<dependency>
48-
<groupId>com.fasterxml.jackson.core</groupId>
48+
<groupId>tools.jackson.core</groupId>
4949
<artifactId>jackson-databind</artifactId>
5050
</dependency>
5151
</dependencies>

web-crawler/wc-plugin/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@
3838
<artifactId>dumont-spring</artifactId>
3939
</dependency>
4040
<dependency>
41-
<groupId>com.fasterxml.jackson.datatype</groupId>
41+
<groupId>tools.jackson.datatype</groupId>
4242
<artifactId>jackson-datatype-hibernate7</artifactId>
43-
<version>2.20.1</version>
4443
</dependency>
4544
<dependency>
4645
<groupId>com.viglet.turing</groupId>

0 commit comments

Comments
 (0)