diff --git a/distribution/archives/build.gradle b/distribution/archives/build.gradle index ae4e6a431c977..c1097b68b898f 100644 --- a/distribution/archives/build.gradle +++ b/distribution/archives/build.gradle @@ -106,15 +106,23 @@ tasks.withType(AbstractArchiveTask) { baseName = "elasticsearch${ subdir.contains('oss') ? '-oss' : ''}" } +Closure commonZipConfig = { + dirMode 0755 + fileMode 0644 +} + task buildIntegTestZip(type: Zip) { + configure(commonZipConfig) with archiveFiles(transportModulesFiles, 'zip', false) } task buildZip(type: Zip) { + configure(commonZipConfig) with archiveFiles(modulesFiles(false), 'zip', false) } task buildOssZip(type: Zip) { + configure(commonZipConfig) with archiveFiles(modulesFiles(true), 'zip', true) }