Skip to content

Commit 4141621

Browse files
committed
Build: Fix publishing of shadow jars
Disable the default shadowJar configuration and ensure publishing includes both confluent and all shadow versions. KAFKA-222
1 parent ebc867b commit 4141621

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,11 @@ tasks.withType<ShadowJar> {
257257
val fatJarSize = "%.4f".format(fatJar.length().toDouble() / (1_000 * 1_000))
258258
println("FatJar: ${fatJar.path} ($fatJarSize MB)")
259259
}
260+
261+
// Disable the default shadowJar task
262+
tasks.named("shadowJar").configure {
263+
enabled = false
264+
}
260265
}
261266

262267
/*
@@ -281,6 +286,8 @@ publishing {
281286
from(components["java"])
282287
artifact(tasks["sourcesJar"])
283288
artifact(tasks["javadocJar"])
289+
artifact(tasks["confluentJar"])
290+
artifact(tasks["allJar"])
284291

285292
pom {
286293
name.set(project.name)

0 commit comments

Comments
 (0)