|
@@ -50,7 +50,7 @@ task createJvmOptionsDir(type: EmptyDirTask) {
|
|
|
dirMode = 0750
|
|
|
}
|
|
|
|
|
|
-CopySpec archiveFiles(CopySpec modulesFiles, String distributionType, String platform, boolean oss, boolean jdk) {
|
|
|
+CopySpec archiveFiles(CopySpec modulesFiles, String distributionType, String platform, String architecture, boolean oss, boolean jdk) {
|
|
|
return copySpec {
|
|
|
into("elasticsearch-${version}") {
|
|
|
into('lib') {
|
|
@@ -70,7 +70,7 @@ CopySpec archiveFiles(CopySpec modulesFiles, String distributionType, String pla
|
|
|
}
|
|
|
if (jdk) {
|
|
|
into("darwin".equals(platform) ? 'jdk.app' : 'jdk') {
|
|
|
- with jdkFiles(project, platform)
|
|
|
+ with jdkFiles(project, platform, architecture)
|
|
|
}
|
|
|
}
|
|
|
into('') {
|
|
@@ -116,31 +116,31 @@ Closure commonZipConfig = {
|
|
|
|
|
|
task buildIntegTestZip(type: Zip) {
|
|
|
configure(commonZipConfig)
|
|
|
- with archiveFiles(transportModulesFiles, 'zip', null, true, false)
|
|
|
+ with archiveFiles(transportModulesFiles, 'zip', null, 'x64', true, false)
|
|
|
}
|
|
|
|
|
|
task buildWindowsZip(type: Zip) {
|
|
|
configure(commonZipConfig)
|
|
|
archiveClassifier = 'windows-x86_64'
|
|
|
- with archiveFiles(modulesFiles(false, 'windows'), 'zip', 'windows', false, true)
|
|
|
+ with archiveFiles(modulesFiles(false, 'windows'), 'zip', 'windows', 'x64', false, true)
|
|
|
}
|
|
|
|
|
|
task buildOssWindowsZip(type: Zip) {
|
|
|
configure(commonZipConfig)
|
|
|
archiveClassifier = 'windows-x86_64'
|
|
|
- with archiveFiles(modulesFiles(true, 'windows'), 'zip', 'windows', true, true)
|
|
|
+ with archiveFiles(modulesFiles(true, 'windows'), 'zip', 'windows', 'x64', true, true)
|
|
|
}
|
|
|
|
|
|
task buildNoJdkWindowsZip(type: Zip) {
|
|
|
configure(commonZipConfig)
|
|
|
archiveClassifier = 'no-jdk-windows-x86_64'
|
|
|
- with archiveFiles(modulesFiles(false, 'windows'), 'zip', 'windows', false, false)
|
|
|
+ with archiveFiles(modulesFiles(false, 'windows'), 'zip', 'windows', 'x64', false, false)
|
|
|
}
|
|
|
|
|
|
task buildOssNoJdkWindowsZip(type: Zip) {
|
|
|
configure(commonZipConfig)
|
|
|
archiveClassifier = 'no-jdk-windows-x86_64'
|
|
|
- with archiveFiles(modulesFiles(true, 'windows'), 'zip', 'windows', true, false)
|
|
|
+ with archiveFiles(modulesFiles(true, 'windows'), 'zip', 'windows', 'x64', true, false)
|
|
|
}
|
|
|
|
|
|
Closure commonTarConfig = {
|
|
@@ -153,49 +153,61 @@ Closure commonTarConfig = {
|
|
|
task buildDarwinTar(type: SymbolicLinkPreservingTar) {
|
|
|
configure(commonTarConfig)
|
|
|
archiveClassifier = 'darwin-x86_64'
|
|
|
- with archiveFiles(modulesFiles(false, 'darwin'), 'tar', 'darwin', false, true)
|
|
|
+ with archiveFiles(modulesFiles(false, 'darwin'), 'tar', 'darwin', 'x64', false, true)
|
|
|
}
|
|
|
|
|
|
task buildOssDarwinTar(type: SymbolicLinkPreservingTar) {
|
|
|
configure(commonTarConfig)
|
|
|
archiveClassifier = 'darwin-x86_64'
|
|
|
- with archiveFiles(modulesFiles(true, 'darwin'), 'tar', 'darwin', true, true)
|
|
|
+ with archiveFiles(modulesFiles(true, 'darwin'), 'tar', 'darwin', 'x64', true, true)
|
|
|
}
|
|
|
|
|
|
task buildNoJdkDarwinTar(type: SymbolicLinkPreservingTar) {
|
|
|
configure(commonTarConfig)
|
|
|
archiveClassifier = 'no-jdk-darwin-x86_64'
|
|
|
- with archiveFiles(modulesFiles(false, 'darwin'), 'tar', 'darwin', false, false)
|
|
|
+ with archiveFiles(modulesFiles(false, 'darwin'), 'tar', 'darwin', 'x64', false, false)
|
|
|
}
|
|
|
|
|
|
task buildOssNoJdkDarwinTar(type: SymbolicLinkPreservingTar) {
|
|
|
configure(commonTarConfig)
|
|
|
archiveClassifier = 'no-jdk-darwin-x86_64'
|
|
|
- with archiveFiles(modulesFiles(true, 'darwin'), 'tar', 'darwin', true, false)
|
|
|
+ with archiveFiles(modulesFiles(true, 'darwin'), 'tar', 'darwin', 'x64', true, false)
|
|
|
+}
|
|
|
+
|
|
|
+task buildLinuxAarch64Tar(type: SymbolicLinkPreservingTar) {
|
|
|
+ configure(commonTarConfig)
|
|
|
+ archiveClassifier = 'linux-aarch64'
|
|
|
+ with archiveFiles(modulesFiles(false, 'linux'), 'tar', 'linux', 'aarch64', false, true)
|
|
|
}
|
|
|
|
|
|
task buildLinuxTar(type: SymbolicLinkPreservingTar) {
|
|
|
configure(commonTarConfig)
|
|
|
archiveClassifier = 'linux-x86_64'
|
|
|
- with archiveFiles(modulesFiles(false, 'linux'), 'tar', 'linux', false, true)
|
|
|
+ with archiveFiles(modulesFiles(false, 'linux'), 'tar', 'linux', 'x64', false, true)
|
|
|
+}
|
|
|
+
|
|
|
+task buildOssLinuxAarch64Tar(type: SymbolicLinkPreservingTar) {
|
|
|
+ configure(commonTarConfig)
|
|
|
+ archiveClassifier = 'linux-x86_64'
|
|
|
+ with archiveFiles(modulesFiles(true, 'linux'), 'tar', 'linux', 'x64', true, true)
|
|
|
}
|
|
|
|
|
|
task buildOssLinuxTar(type: SymbolicLinkPreservingTar) {
|
|
|
configure(commonTarConfig)
|
|
|
archiveClassifier = 'linux-x86_64'
|
|
|
- with archiveFiles(modulesFiles(true, 'linux'), 'tar', 'linux', true, true)
|
|
|
+ with archiveFiles(modulesFiles(true, 'linux'), 'tar', 'linux', 'x64', true, true)
|
|
|
}
|
|
|
|
|
|
task buildNoJdkLinuxTar(type: SymbolicLinkPreservingTar) {
|
|
|
configure(commonTarConfig)
|
|
|
archiveClassifier = 'no-jdk-linux-x86_64'
|
|
|
- with archiveFiles(modulesFiles(false, 'linux'), 'tar', 'linux', false, false)
|
|
|
+ with archiveFiles(modulesFiles(false, 'linux'), 'tar', 'linux', 'x64', false, false)
|
|
|
}
|
|
|
|
|
|
task buildOssNoJdkLinuxTar(type: SymbolicLinkPreservingTar) {
|
|
|
configure(commonTarConfig)
|
|
|
archiveClassifier = 'no-jdk-linux-x86_64'
|
|
|
- with archiveFiles(modulesFiles(true, 'linux'), 'tar', 'linux', true, false)
|
|
|
+ with archiveFiles(modulesFiles(true, 'linux'), 'tar', 'linux', 'x64', true, false)
|
|
|
}
|
|
|
|
|
|
Closure tarExists = { it -> new File('/bin/tar').exists() || new File('/usr/bin/tar').exists() || new File('/usr/local/bin/tar').exists() }
|