File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -82,3 +82,15 @@ tasks.register("verifyResolution") {
8282tasks.check {
8383 dependsOn(" verifyResolution" )
8484}
85+
86+
87+ // Handle lz4-java redirect capability conflict:
88+ // 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.
89+ // Both artifacts declare the same capability, causing a conflict when upgrading from Kafka's org.lz4:lz4-java:1.8.0.
90+ // This resolution strategy tells Gradle to automatically select the highest version when this conflict occurs.
91+ configurations.all {
92+ resolutionStrategy.capabilitiesResolution.withCapability(" org.lz4:lz4-java" ) {
93+ select(" at.yawk.lz4:lz4-java:1.8.1" )
94+ because(" Both org.lz4 and at.yawk.lz4 provide lz4-java due to Sonatype redirect" )
95+ }
96+ }
You can’t perform that action at this time.
0 commit comments