Skip to content

Commit 8f09b7e

Browse files
committed
Fix brew formula being copied into the same folder as the zip
1 parent 7eca838 commit 8f09b7e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

build.gradle.kts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -484,11 +484,9 @@ val buildBrewZip by tasks.registering(Zip::class) {
484484
}
485485
}
486486

487-
val buildBrewFormula by tasks.registering(Copy::class) {
488-
dependsOn(buildBrewZip)
489-
487+
val buildBrewFormula by tasks.registering(Sync::class) {
490488
from("packages/homebrew/mqtt-cli.rb")
491-
into(layout.buildDirectory.dir("packages/homebrew"))
489+
into(layout.buildDirectory.dir("packages/homebrew/formula"))
492490
filter {
493491
it.replace("@@description@@", project.description!!)
494492
.replace("@@version@@", project.version.toString())
@@ -609,7 +607,7 @@ gitPublish {
609607
repoUri.set("https://github.com/hivemq/homebrew-mqtt-cli.git")
610608
branch.set("master")
611609
commitMessage.set("Release version v${project.version}")
612-
contents.from(buildBrewFormula) { include("mqtt-cli.rb") }
610+
contents.from(buildBrewFormula)
613611
}
614612

615613
/* ******************** docker ******************** */

0 commit comments

Comments
 (0)