Skip to content

Commit cd7bf1d

Browse files
committed
Fix confluent archive format
KAFKA-41
1 parent af9fcd5 commit cd7bf1d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,14 +376,16 @@ gradle.taskGraph.whenReady {
376376

377377
// Confluent Archive
378378
val releaseDate by extra(DateTimeFormatter.ISO_LOCAL_DATE.format(LocalDateTime.now()))
379+
val archiveFilename = "mongodb-kafka-connect-mongodb"
379380
tasks.register<Copy>("prepareConfluentArchive") {
380381
group = "Confluent"
381382
description = "Prepares the Confluent Archive ready for the hub"
382383
dependsOn("shadowJar")
383384

385+
val baseDir = "$archiveFilename-${project.version.toString()}"
384386
from("config/archive/manifest.json") {
385387
expand(project.properties)
386-
destinationDir = file("$buildDir/confluentArchive")
388+
destinationDir = file("$buildDir/confluentArchive/$baseDir")
387389
}
388390

389391
from("config/archive/assets") {
@@ -412,7 +414,7 @@ tasks.register<Zip>("createConfluentArchive") {
412414
dependsOn("prepareConfluentArchive")
413415
from(files("$buildDir/confluentArchive"))
414416
archiveBaseName.set("")
415-
archiveAppendix.set("monogdb-kafka-connect-mongodb")
417+
archiveAppendix.set(archiveFilename)
416418
archiveVersion.set(project.version.toString())
417419
destinationDirectory.set(file("$buildDir/confluent"))
418420
}

0 commit comments

Comments
 (0)