Build: Change tar extension back to tar.gz instead of tgz

Gradle defaults to tgz extension when tar is compressed. This changes
the tar distribution back to tar.gz. Note that this also means the maven
packaging type is now tar.gz.
This commit is contained in:
Ryan Ernst 2015-11-03 11:24:27 -08:00
parent 64a01cfb05
commit 95f885e11f
2 changed files with 2 additions and 1 deletions

View File

@ -235,7 +235,7 @@ class ClusterFormationTasks {
static void configureDistributionDependency(Project project, String distro) {
String elasticsearchVersion = ElasticsearchProperties.version
String packaging = distro == 'tar' ? 'tgz' : distro
String packaging = distro == 'tar' ? 'tar.gz' : distro
project.configurations {
elasticsearchDistro
}

View File

@ -19,6 +19,7 @@
task buildTar(type: Tar, dependsOn: dependencyFiles) {
baseName = 'elasticsearch'
extension = 'tar.gz'
with archivesFiles
compression = Compression.GZIP
}