Skip to content

Commit

Permalink
fix intelliJ IDEA gradle sync error (opensearch-project#916)
Browse files Browse the repository at this point in the history
Signed-off-by: Hailong Cui <ihailong@amazon.com>
Signed-off-by: Tanqiu Liu <liutanqiu@gmail.com>
  • Loading branch information
Hailong-am authored and tanqiuliu committed Sep 25, 2023
1 parent 96ef16e commit 1ba75b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build-tools/pkgbuild.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ afterEvaluate {
tasks.register("renameRpm", Copy) {
from("$buildDir/distributions")
into("$buildDir/distributions")
include archiveFileName
rename archiveFileName, "${packageName}-${version}.rpm"
include archiveFileName.get()
rename archiveFileName.get(), "${packageName}-${version}.rpm"
doLast { delete file("$buildDir/distributions/$archiveFileName") }
}
}
Expand All @@ -56,8 +56,8 @@ afterEvaluate {
tasks.register("renameDeb", Copy) {
from("$buildDir/distributions")
into("$buildDir/distributions")
include archiveFileName
rename archiveFileName, "${packageName}-${version}.deb"
include archiveFileName.get()
rename archiveFileName.get(), "${packageName}-${version}.deb"
doLast { delete file("$buildDir/distributions/$archiveFileName") }
}
}
Expand Down

0 comments on commit 1ba75b0

Please sign in to comment.