Change pack artifact to be more maven-like

Original commit: elastic/x-pack-elasticsearch@e8eed37553
This commit is contained in:
Colin Goodheart-Smithe 2017-01-19 14:03:40 +00:00
parent 33800bae5e
commit d0b36fd52a
1 changed files with 3 additions and 1 deletions

View File

@ -111,11 +111,13 @@ task clean(type: Delete) {
delete 'build'
}
String projectGroupPath = project.group.replaceAll("\\.", "/")
task uploadPackToS3(type: UploadS3Task, dependsOn: build) {
enabled project.uploadEnabled
description = 'upload pack zip to S3 Bucket'
bucket 'prelert-artifacts'
upload bundlePack.outputs.files.singleFile, "maven/${project.group}/${packArtifactName}/${project.version}/${bundlePack.outputs.files.singleFile.name}"
upload bundlePack.outputs.files.singleFile, "maven/${projectGroupPath}/${packArtifactName}/${project.version}/${bundlePack.outputs.files.singleFile.name}"
}
task deploy(dependsOn: uploadPackToS3) {