Ensure license-tools zip extracts to a parent directory

Currently, extracting the license-tools zip does not create
a parent directory. This commit extracts out the `bin` and `lib`
folders inside a parent directory `license-tools-{version}`

Original commit: elastic/x-pack-elasticsearch@74960b6b1e
This commit is contained in:
Areek Zillur 2016-11-07 15:21:01 -05:00
parent bb94f3a2b2
commit fadd661738
1 changed files with 3 additions and 2 deletions

View File

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