Skip to content

Commit baf46e0

Browse files
fix: don't drop lz4 during minimization (#3342)
1 parent 858544c commit baf46e0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build-logic/src/main/kotlin/buildlogic.platform.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ tasks.named<ShadowJar>("shadowJar") {
2727
exclude("LICENSE*")
2828
exclude("META-INF/maven/**")
2929
minimize {
30-
// jchronic uses reflection to load things, so we need to exclude it from minimizing
30+
// jchronic + lz4-java uses reflection to load things, so we need to exclude it from minimizing
3131
exclude(dependency(jchronic))
32+
exclude(dependency(stringyLibs.getLibrary("lz4Java").get()))
3233
}
3334
}
3435
val javaComponent = components["java"] as AdhocComponentWithVariants

worldedit-bukkit/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ tasks.register<ShadowJar>("reobfShadowJar") {
163163
exclude(dependency(libs.jsr305))
164164
}
165165
minimize {
166-
// jchronic uses reflection to load things, so we need to exclude it from minimizing
166+
// jchronic + lz4-java uses reflection to load things, so we need to exclude it from minimizing
167167
exclude(dependency(libs.jchronic))
168+
exclude(dependency(libs.lz4Java))
168169
}
169170

170171
// as is done by shadow for the default shadowJar

0 commit comments

Comments
 (0)