Skip to content

Commit

Permalink
Use jackson bom to control version of all transitive jackson dependen…
Browse files Browse the repository at this point in the history
…cies

Why:
Signed-off-by: Robert Young <[email protected]>
  • Loading branch information
robobario committed Oct 25, 2023
1 parent d6625de commit 39031bf
Showing 1 changed file with 18 additions and 24 deletions.
42 changes: 18 additions & 24 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@
<sonatype.nexus.staging>1.6.7</sonatype.nexus.staging>
<swagger2markup-plugin.version>1.3.7</swagger2markup-plugin.version>
<swagger2markup.version>1.3.4</swagger2markup.version>
<jackson-core.version>2.15.2</jackson-core.version>
<jackson-databind.version>2.15.2</jackson-databind.version>
<jackson.version>2.15.2</jackson.version>
<spotbugs.version>4.7.3</spotbugs.version>
<maven.spotbugs.version>4.7.3.0</maven.spotbugs.version>
<strimzi-oauth.version>0.14.0</strimzi-oauth.version>
Expand All @@ -140,6 +139,18 @@
<!--suppress UnresolvedMavenProperty -->
<skip.surefire.tests>${skipTests}</skip.surefire.tests>
</properties>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-bom</artifactId>
<version>${jackson.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
Expand Down Expand Up @@ -288,25 +299,16 @@
<artifactId>commons-cli</artifactId>
<version>${commons-cli.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>

<!-- Kubernetes Configuration Provider for Apache Kafka -->
<dependency>
<groupId>io.strimzi</groupId>
<artifactId>kafka-kubernetes-config-provider</artifactId>
<version>${kafka-kubernetes-config-provider.version}</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- EnvVar Configuration Provider for Apache Kafka -->
<dependency>
Expand All @@ -324,12 +326,6 @@
<artifactId>snakeyaml</artifactId>
<version>${snakeyaml.version}</version>
</dependency>
<!-- Used only for test in the bridge, but needs to be here because OAuth brings it but a potential Maven bug remove it as runtime if only for test -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson-databind.version}</version>
</dependency>
<!-- Testing -->
<dependency>
<groupId>org.junit.jupiter</groupId>
Expand Down Expand Up @@ -504,8 +500,6 @@
<ignoredNonTestScopedDependencies>
<!-- OpenTelemetry - The SDK is using this at runtime to load the Vert.x “context storage provider”. To ignore because it is detected as used for test only. -->
<ignoredNonTestScopedDependency>io.vertx:vertx-opentelemetry</ignoredNonTestScopedDependency>
<!-- Used only for test in the bridge but needed by OAuth. If left "test" scoped, a potential Maven bug remove it from the runtime -->
<ignoredNonTestScopedDependencies>com.fasterxml.jackson.core:jackson-databind</ignoredNonTestScopedDependencies>
</ignoredNonTestScopedDependencies>
<ignoredUnusedDeclaredDependencies>
<ignoredUnusedDeclaredDependency>io.strimzi:kafka-env-var-config-provider</ignoredUnusedDeclaredDependency>
Expand Down

0 comments on commit 39031bf

Please sign in to comment.