Skip to content

Commit 78aef6a

Browse files
committed
address gradle's conflict due to org.lz4:lz4-java:1.8.1 being pointed to at.yawk.lz4:lz4-java:1.8.1
1 parent 360b528 commit 78aef6a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ subprojects {
2727
apply(plugin = "org.hypertrace.code-style-plugin")
2828
}
2929
}
30+
31+
// Handle lz4-java redirect capability conflict:
32+
// 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.
33+
// Both artifacts declare the same capability, causing a conflict when upgrading from Kafka's org.lz4:lz4-java:1.8.0.
34+
// This resolution strategy tells Gradle to automatically select the highest version when this conflict occurs.
35+
configurations.all {
36+
resolutionStrategy.capabilitiesResolution.withCapability("org.lz4:lz4-java") {
37+
selectHighestVersion()
38+
}
39+
}
3040
}
3141

3242
dependencyCheck {

0 commit comments

Comments
 (0)