Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,6 @@ subprojects {
apply(plugin = "org.hypertrace.code-style-plugin")
}
}

// Handle lz4-java redirect capability conflict:
// Sonatype added a redirect from org.lz4:lz4-java:1.8.1 -> at.yawk.lz4:lz4-java:1.8.1 to address CVE-2025-12183.
// Both artifacts declare the same capability, causing a conflict when upgrading from Kafka's org.lz4:lz4-java:1.8.0.
// This resolution strategy tells Gradle to automatically select the highest version when this conflict occurs.
configurations.all {
resolutionStrategy.capabilitiesResolution.withCapability("org.lz4:lz4-java") {
select("at.yawk.lz4:lz4-java:1.8.1")
because("Both org.lz4 and at.yawk.lz4 provide lz4-java due to Sonatype redirect")
}
}
}

dependencyCheck {
Expand Down
11 changes: 11 additions & 0 deletions kafka-bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,14 @@ dependencies {
api("org.apache.avro:avro:1.12.0")
}
}

// Handle lz4-java redirect capability conflict:
// Sonatype added a redirect from org.lz4:lz4-java:1.8.1 -> at.yawk.lz4:lz4-java:1.8.1 to address CVE-2025-12183.
// Both artifacts declare the same capability, causing a conflict when upgrading from Kafka's org.lz4:lz4-java:1.8.0.
// This resolution strategy tells Gradle to automatically select the highest version when this conflict occurs.
configurations.all {
resolutionStrategy.capabilitiesResolution.withCapability("org.lz4:lz4-java") {
select("at.yawk.lz4:lz4-java:1.8.1")
because("Both org.lz4 and at.yawk.lz4 provide lz4-java due to Sonatype redirect")
}
}
Loading