Skip to content

Commit 284e4bb

Browse files
committed
build: use jackson-bom 2.22.1 for version management
- Add jackson-bom.version=2.22.1 property - Import com.fasterxml.jackson:jackson-bom in dependencyManagement - Remove explicit version + jackson-annotations.version
1 parent 2209922 commit 284e4bb

1 file changed

Lines changed: 9 additions & 17 deletions

File tree

‎pom.xml‎

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@
469469
<!-- Dependency versions -->
470470
<commons-exec.version>1.6.0</commons-exec.version>
471471
<jackson.version>2.22.1</jackson.version>
472-
<jackson-annotations.version>2.22</jackson-annotations.version>
472+
<jackson-bom.version>2.22.1</jackson-bom.version>
473473
<java-websocket.version>1.6.0</java-websocket.version>
474474
<junit.version>5.11.4</junit.version>
475475
<junit-jupiter.version>5.11.4</junit-jupiter.version>
@@ -499,6 +499,14 @@
499499
<!-- 依赖版本统一管理(dependencyManagement) -->
500500
<dependencyManagement>
501501
<dependencies>
502+
<!-- Jackson BOM -->
503+
<dependency>
504+
<groupId>com.fasterxml.jackson</groupId>
505+
<artifactId>jackson-bom</artifactId>
506+
<version>${jackson-bom.version}</version>
507+
<type>pom</type>
508+
<scope>import</scope>
509+
</dependency>
502510
<!-- For OkHttp -->
503511
<dependency>
504512
<groupId>com.squareup.okhttp3</groupId>
@@ -528,22 +536,6 @@
528536
<artifactId>Java-WebSocket</artifactId>
529537
<version>${java-websocket.version}</version>
530538
</dependency>
531-
<!-- For Jackson -->
532-
<dependency>
533-
<groupId>com.fasterxml.jackson.core</groupId>
534-
<artifactId>jackson-annotations</artifactId>
535-
<version>${jackson-annotations.version}</version>
536-
</dependency>
537-
<dependency>
538-
<groupId>com.fasterxml.jackson.core</groupId>
539-
<artifactId>jackson-core</artifactId>
540-
<version>${jackson.version}</version>
541-
</dependency>
542-
<dependency>
543-
<groupId>com.fasterxml.jackson.core</groupId>
544-
<artifactId>jackson-databind</artifactId>
545-
<version>${jackson.version}</version>
546-
</dependency>
547539
<!-- For Commons Exec -->
548540
<dependency>
549541
<groupId>org.apache.commons</groupId>

0 commit comments

Comments
 (0)