Fix deprecated property usage in archive tasks (#58269) (#58308)

This commit is contained in:
Rene Groeschke 2020-06-23 09:11:46 +02:00 committed by GitHub
parent 3169e4c70e
commit bd2dd81bc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -108,8 +108,8 @@ CopySpec archiveFiles(CopySpec modulesFiles, String distributionType, String pla
tasks.withType(AbstractArchiveTask).configureEach {
dependsOn createLogsDir, createPluginsDir, createJvmOptionsDir
String subdir = it.name.substring('build'.size()).replaceAll(/[A-Z]/) { '-' + it.toLowerCase() }.substring(1)
destinationDir = file("${subdir}/build/distributions")
baseName = "elasticsearch${subdir.contains('oss') ? '-oss' : ''}"
destinationDirectory = file("${subdir}/build/distributions")
archiveBaseName = "elasticsearch${subdir.contains('oss') ? '-oss' : ''}"
}
Closure commonZipConfig = {

View File

@ -1,7 +1,7 @@
apply plugin: 'base'
task buildDockerBuildContext(type: Tar) {
extension = 'tar.gz'
archiveExtension = 'tar.gz'
compression = Compression.GZIP
archiveClassifier = "docker-build-context"
archiveBaseName = "elasticsearch"

View File

@ -1,7 +1,7 @@
apply plugin: 'base'
task buildOssDockerBuildContext(type: Tar) {
extension = 'tar.gz'
archiveExtension = 'tar.gz'
compression = Compression.GZIP
archiveClassifier = "docker-build-context"
archiveBaseName = "elasticsearch-oss"

View File

@ -50,7 +50,7 @@ dependencies {
}
war {
archiveName 'example-app.war'
archiveFileName = 'example-app.war'
}
elasticsearch_distributions {

View File

@ -13,7 +13,7 @@ project.forbiddenPatterns {
tasks.named("dependencyLicenses").configure { it.enabled = false }
task buildZip(type: Zip, dependsOn: jar) {
String parentDir = "license-tools-${version}"
String parentDir = "license-tools-${archiveVersion}"
into(parentDir + '/lib') {
from jar
from configurations.runtime