From 73083c2b51d77365297b19c59ae424964446a33e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Tue, 17 Mar 2026 16:00:21 +0100 Subject: [PATCH] Upgrade to Kafka 4.1.2 See also https://github.com/yawkat/lz4-java/wiki/Gradle-and-org.lz4:lz4%E2%80%90java:1.8.1 Closes gh-49627 --- documentation/spring-boot-docs/build.gradle | 13 ++++++++++--- platform/spring-boot-dependencies/build.gradle | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/documentation/spring-boot-docs/build.gradle b/documentation/spring-boot-docs/build.gradle index e95c95d2bd2..449baac2fae 100644 --- a/documentation/spring-boot-docs/build.gradle +++ b/documentation/spring-boot-docs/build.gradle @@ -371,9 +371,16 @@ configurations { attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage, Usage.JAVA_RUNTIME)) } extendsFrom configurations.javadoc - resolutionStrategy.eachDependency { - if (it.requested.group == 'org.opensaml') { - it.useVersion '4.0.1' + resolutionStrategy { + capabilitiesResolution { + withCapability("org.lz4:lz4-java") { + select(candidates.find { ((ModuleComponentIdentifier) it.id).group == "at.yawk.lz4" }) + } + } + eachDependency { + if (it.requested.group == 'org.opensaml') { + it.useVersion '4.0.1' + } } } } diff --git a/platform/spring-boot-dependencies/build.gradle b/platform/spring-boot-dependencies/build.gradle index dbd8dd7959d..e9dac9ebc9f 100644 --- a/platform/spring-boot-dependencies/build.gradle +++ b/platform/spring-boot-dependencies/build.gradle @@ -1172,7 +1172,7 @@ bom { releaseNotes("https://junit.org/junit5/docs/{version}/release-notes") } } - library("Kafka", "4.1.1") { + library("Kafka", "4.1.2") { group("org.apache.kafka") { modules = [ "connect",