File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -376,14 +376,16 @@ gradle.taskGraph.whenReady {
376376
377377// Confluent Archive
378378val releaseDate by extra(DateTimeFormatter .ISO_LOCAL_DATE .format(LocalDateTime .now()))
379+ val archiveFilename = " mongodb-kafka-connect-mongodb"
379380tasks.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}
You can’t perform that action at this time.
0 commit comments