You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ij...@apache.org on 2021/02/23 18:52:12 UTC

[kafka] branch 2.8 updated: KAFKA-12341: Ensure consistent versions for javassist (#10191)

This is an automated email from the ASF dual-hosted git repository.

ijuma pushed a commit to branch 2.8
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/2.8 by this push:
     new f929215  KAFKA-12341: Ensure consistent versions for javassist (#10191)
f929215 is described below

commit f929215db90326f8fa89244523fc3be4011b0d24
Author: Ismael Juma <is...@juma.me.uk>
AuthorDate: Tue Feb 23 10:47:53 2021 -0800

    KAFKA-12341: Ensure consistent versions for javassist (#10191)
    
    And update to 3.27.0-GA.
    
    Reviewers: Chia-Ping Tsai <ch...@gmail.com>
---
 build.gradle               | 13 +++++--------
 gradle/dependencies.gradle |  2 ++
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/build.gradle b/build.gradle
index e9b2512..05f77e0 100644
--- a/build.gradle
+++ b/build.gradle
@@ -80,17 +80,14 @@ allprojects {
       if (name != "zinc") {
         resolutionStrategy {
           force(
-            // ensure we have a single version of scala jars in the classpath, we enable inlining
-            // in the scala compiler for the `core` module so binary compatibility is only
-            // guaranteed if the exact same version of the scala jars is used for compilation
-            // and at runtime
+            // be explicit about the javassist dependency version instead of relying on the transitive version
+            libs.javassist,
+            // ensure we have a single version in the classpath despite transitive dependencies
             libs.scalaLibrary,
             libs.scalaReflect,
-            // ensures we have a single version of jackson-annotations in the classpath even if
-            // some modules only have a transitive reference to an older version
             libs.jacksonAnnotations,
-            // be explicit about the Netty dependency version instead of relying on the version
-            // set by ZooKeeper (potentially older and containing CVEs)
+            // be explicit about the Netty dependency version instead of relying on the version set by
+            // ZooKeeper (potentially older and containing CVEs)
             libs.nettyHandler,
             libs.nettyTransportNativeEpoll
           )
diff --git a/gradle/dependencies.gradle b/gradle/dependencies.gradle
index b823e37..4ff9ac7 100644
--- a/gradle/dependencies.gradle
+++ b/gradle/dependencies.gradle
@@ -69,6 +69,7 @@ versions += [
   jackson: "2.10.5",
   jacksonDatabind: "2.10.5.1",
   jacoco: "0.8.5",
+  javassist: "3.27.0-GA",
   jetty: "9.4.36.v20210114",
   jersey: "2.31",
   jline: "3.12.1",
@@ -144,6 +145,7 @@ libs += [
   jacksonJaxrsJsonProvider: "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$versions.jackson",
   jaxbApi: "javax.xml.bind:jaxb-api:$versions.jaxb",
   jaxrsApi: "javax.ws.rs:javax.ws.rs-api:$versions.jaxrs",
+  javassist: "org.javassist:javassist:$versions.javassist",
   jettyServer: "org.eclipse.jetty:jetty-server:$versions.jetty",
   jettyClient: "org.eclipse.jetty:jetty-client:$versions.jetty",
   jettyServlet: "org.eclipse.jetty:jetty-servlet:$versions.jetty",