Skip to content

Commit d1db5d5

Browse files
Fix jackson-bom import
1 parent 87ef0d8 commit d1db5d5

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

astra-db-java/pom.xml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,19 @@
5353

5454
</properties>
5555

56+
<dependencyManagement>
57+
<dependencies>
58+
<!-- BOM needs to be in dependencyManagement section to work -->
59+
<dependency>
60+
<groupId>com.fasterxml.jackson</groupId>
61+
<artifactId>jackson-bom</artifactId>
62+
<version>${jackson.version}</version>
63+
<scope>import</scope>
64+
<type>pom</type>
65+
</dependency>
66+
</dependencies>
67+
</dependencyManagement>
68+
5669
<dependencies>
5770

5871
<!-- Dependency to Devops API -->
@@ -87,32 +100,21 @@
87100
</dependency>
88101

89102
<!-- Working with JSON -->
90-
<dependency>
91-
<groupId>com.fasterxml.jackson</groupId>
92-
<artifactId>jackson-bom</artifactId>
93-
<version>${jackson.version}</version>
94-
<scope>runtime</scope>
95-
<type>pom</type>
96-
</dependency>
97103
<dependency>
98104
<groupId>com.fasterxml.jackson.core</groupId>
99105
<artifactId>jackson-core</artifactId>
100-
<version>${jackson.version}</version>
101106
</dependency>
102107
<dependency>
103108
<groupId>com.fasterxml.jackson.core</groupId>
104109
<artifactId>jackson-annotations</artifactId>
105-
<version>${jackson.version}</version>
106110
</dependency>
107111
<dependency>
108112
<groupId>com.fasterxml.jackson.core</groupId>
109113
<artifactId>jackson-databind</artifactId>
110-
<version>${jackson.version}</version>
111114
</dependency>
112115
<dependency>
113116
<groupId>com.fasterxml.jackson.datatype</groupId>
114117
<artifactId>jackson-datatype-jsr310</artifactId>
115-
<version>${jackson.version}</version>
116118
</dependency>
117119

118120
<!-- TEST -->
@@ -431,4 +433,4 @@
431433
</license>
432434
</licenses>
433435

434-
</project>
436+
</project>

0 commit comments

Comments
 (0)