Skip to content

Commit 16aa8fb

Browse files
committed
Fix actuator dependency on Jackson JSR 310 module
This commit harmonizes dependency declarations for Jackson in the actuator. Both Jackson and JSR 310 are back to optional in the core actuator module and mandatory when using the auto-configuration. Closes gh-22624
1 parent 8035af9 commit 16aa8fb

File tree

2 files changed

+9
-4
lines changed
  • spring-boot-project

2 files changed

+9
-4
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
<groupId>com.fasterxml.jackson.core</groupId>
3636
<artifactId>jackson-databind</artifactId>
3737
</dependency>
38+
<dependency>
39+
<groupId>com.fasterxml.jackson.datatype</groupId>
40+
<artifactId>jackson-datatype-jsr310</artifactId>
41+
</dependency>
3842
<dependency>
3943
<groupId>org.springframework</groupId>
4044
<artifactId>spring-core</artifactId>

spring-boot-project/spring-boot-actuator/pom.xml

+5-4
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,17 @@
2626
<groupId>org.springframework.boot</groupId>
2727
<artifactId>spring-boot</artifactId>
2828
</dependency>
29-
<dependency>
30-
<groupId>com.fasterxml.jackson.datatype</groupId>
31-
<artifactId>jackson-datatype-jsr310</artifactId>
32-
</dependency>
3329
<!-- Optional -->
3430
<dependency>
3531
<groupId>com.fasterxml.jackson.core</groupId>
3632
<artifactId>jackson-databind</artifactId>
3733
<optional>true</optional>
3834
</dependency>
35+
<dependency>
36+
<groupId>com.fasterxml.jackson.datatype</groupId>
37+
<artifactId>jackson-datatype-jsr310</artifactId>
38+
<optional>true</optional>
39+
</dependency>
3940
<dependency>
4041
<groupId>com.github.ben-manes.caffeine</groupId>
4142
<artifactId>caffeine</artifactId>

0 commit comments

Comments
 (0)