Skip to content

Commit e5e8bf0

Browse files
Vincentdubee
authored andcommitted
Separate the source directories for different files to package (#307)
We need to pick up the files to package from different directories by specifying separately, in order to remove conflict.
1 parent 0c34a07 commit e5e8bf0

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,13 @@ task individualArchives(
241241
if (p.goOs == 'linux') { compression = Compression.GZIP }
242242
destinationDir = file(cliReleaseLocation)
243243
baseName = "${p.zipFileName}-${packageVersion}-${p.owOs}-${p.goArch}"
244-
from "${cliBuildLocation}/${p.goOs}-${p.goArch}/"
245-
include "${buildFileName}*"
246-
from "./"
247-
include "LICENSE.txt", "NOTICE.txt", "README.md"
248-
exclude "wski18n"
244+
from("${cliBuildLocation}/${p.goOs}-${p.goArch}/") {
245+
include "${buildFileName}*"
246+
}
247+
from("./") {
248+
include "LICENSE.txt", "NOTICE.txt", "README.md"
249+
exclude "wski18n"
250+
}
249251
}
250252
})
251253

0 commit comments

Comments
 (0)