KAFKA-12341: Ensure consistent versions for javassist (#10191)

And update to 3.27.0-GA.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Ismael Juma 2021-02-23 10:47:53 -08:00 committed by GitHub
parent 0605b690e9
commit 6f2cb60ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 8 deletions

View File

@ -80,17 +80,14 @@ allprojects {
if (name != "zinc") { if (name != "zinc") {
resolutionStrategy { resolutionStrategy {
force( force(
// ensure we have a single version of scala jars in the classpath, we enable inlining // be explicit about the javassist dependency version instead of relying on the transitive version
// in the scala compiler for the `core` module so binary compatibility is only libs.javassist,
// guaranteed if the exact same version of the scala jars is used for compilation // ensure we have a single version in the classpath despite transitive dependencies
// and at runtime
libs.scalaLibrary, libs.scalaLibrary,
libs.scalaReflect, 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, libs.jacksonAnnotations,
// be explicit about the Netty dependency version instead of relying on the version // be explicit about the Netty dependency version instead of relying on the version set by
// set by ZooKeeper (potentially older and containing CVEs) // ZooKeeper (potentially older and containing CVEs)
libs.nettyHandler, libs.nettyHandler,
libs.nettyTransportNativeEpoll libs.nettyTransportNativeEpoll
) )

View File

@ -69,6 +69,7 @@ versions += [
jackson: "2.10.5", jackson: "2.10.5",
jacksonDatabind: "2.10.5.1", jacksonDatabind: "2.10.5.1",
jacoco: "0.8.5", jacoco: "0.8.5",
javassist: "3.27.0-GA",
jetty: "9.4.36.v20210114", jetty: "9.4.36.v20210114",
jersey: "2.31", jersey: "2.31",
jline: "3.12.1", jline: "3.12.1",
@ -144,6 +145,7 @@ libs += [
jacksonJaxrsJsonProvider: "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$versions.jackson", jacksonJaxrsJsonProvider: "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$versions.jackson",
jaxbApi: "javax.xml.bind:jaxb-api:$versions.jaxb", jaxbApi: "javax.xml.bind:jaxb-api:$versions.jaxb",
jaxrsApi: "javax.ws.rs:javax.ws.rs-api:$versions.jaxrs", jaxrsApi: "javax.ws.rs:javax.ws.rs-api:$versions.jaxrs",
javassist: "org.javassist:javassist:$versions.javassist",
jettyServer: "org.eclipse.jetty:jetty-server:$versions.jetty", jettyServer: "org.eclipse.jetty:jetty-server:$versions.jetty",
jettyClient: "org.eclipse.jetty:jetty-client:$versions.jetty", jettyClient: "org.eclipse.jetty:jetty-client:$versions.jetty",
jettyServlet: "org.eclipse.jetty:jetty-servlet:$versions.jetty", jettyServlet: "org.eclipse.jetty:jetty-servlet:$versions.jetty",