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:
parent
bb94f3a2b2
commit
fadd661738
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue