Skip to content

Commit

Permalink
3.x: Upgrade kafka-clients and okhttp (helidon-io#7836)
Browse files Browse the repository at this point in the history
* Upgrade kafka-clients and okhttp
* Manage version of okio
* Add dependency on okttp3 mockwebserver to align on okhttp3 version
  • Loading branch information
barchetta authored Oct 19, 2023
1 parent 3581071 commit fae6c44
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 27 deletions.
40 changes: 13 additions & 27 deletions dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@
<version.lib.jgit>6.7.0.202309050840-r</version.lib.jgit>
<version.lib.jsonp-impl>2.0.1</version.lib.jsonp-impl>
<version.lib.junit>5.7.0</version.lib.junit>
<version.lib.kafka>3.4.0</version.lib.kafka>
<!-- Force upgrade of snappy. This should be removed once kafka-clients is upgraded -->
<!-- See https://issues.apache.org/jira/browse/KAFKA-15498 -->
<version.lib.snappy>1.1.10.5</version.lib.snappy>
<version.lib.kafka>3.6.0</version.lib.kafka>
<version.lib.log4j>2.17.1</version.lib.log4j>
<version.lib.logback>1.2.10</version.lib.logback>
<version.lib.mariadb-java-client>2.6.2</version.lib.mariadb-java-client>
Expand Down Expand Up @@ -135,9 +132,10 @@
<version.lib.oci>3.21.0</version.lib.oci>
<version.lib.ojdbc8>21.3.0.0</version.lib.ojdbc8>
<version.lib.database.messaging>19.3.0.0</version.lib.database.messaging>
<version.lib.okhttp3>3.14.9</version.lib.okhttp3>
<!-- Force upgrade to more current version -->
<version.lib.okio>3.4.0</version.lib.okio>
<!-- Manage okio version for dependency convergence -->
<version.lib.okio>3.6.0</version.lib.okio>
<!-- Force upgrade okhttp3 transitive dependency -->
<version.lib.okhttp3>4.12.0</version.lib.okhttp3>
<version.lib.opentelemetry>1.22.0</version.lib.opentelemetry>
<version.lib.opentelemetry.semconv>1.22.0-alpha</version.lib.opentelemetry.semconv>
<version.lib.opentelemetry.opentracing.shim>1.22.0-alpha</version.lib.opentelemetry.opentracing.shim>
Expand Down Expand Up @@ -918,13 +916,6 @@
<artifactId>kafka-clients</artifactId>
<version>${version.lib.kafka}</version>
</dependency>
<!-- Force upgrade of snappy. This should be removed once kafka-clients is upgraded -->
<!-- to 3.4.2 or newer. See https://issues.apache.org/jira/browse/KAFKA-15096 -->
<dependency>
<groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId>
<version>${version.lib.snappy}</version>
</dependency>
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-binding</artifactId>
Expand Down Expand Up @@ -1233,24 +1224,11 @@
</exclusion>
</exclusions>
</dependency>
<!-- 4.x versions cause problems with native-image This is used by jaeger-client -->
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>${version.lib.okhttp3}</version>
</dependency>
<dependency>
<!-- required for dependency convergence
used from both
com.squareup.okhttp3:mockwebserver:3.13.1
com.squareup.moshi:moshi:1.8.0
both referenced by
io.zipkin.zipkin2:zipkin-junit:2.12.5
-->
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
<version>${version.lib.okio}</version>
</dependency>
<!-- END OF Section 3: transitive dependencies we manage the version of for convergence/upgrade -->

<!-- Section 4: Testing -->
Expand Down Expand Up @@ -1353,6 +1331,14 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<!-- For dependency convergence. Used by okhttp -->
<groupId>com.squareup.okio</groupId>
<artifactId>okio-bom</artifactId>
<version>${version.lib.okio}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-bom</artifactId>
Expand Down
6 changes: 6 additions & 0 deletions grpc/server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@
<artifactId>parsson</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>mockwebserver</artifactId>
<version>${version.lib.okhttp3}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
Expand Down
17 changes: 17 additions & 0 deletions tracing/jaeger/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,26 @@
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-sdk</artifactId>
</dependency>
<!-- For dependency convergence of kotlin-stdlib -->
<dependency>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-exporter-jaeger</artifactId>
<exclusions>
<!-- For dependency convergence. This excludes the transitive dep
on kotlin from okhttp. We defer to the transitive dep from okio -->
<exclusion>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
</exclusion>
<exclusion>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.helidon.tracing</groupId>
Expand Down

0 comments on commit fae6c44

Please sign in to comment.