OpenSearch/license-tools/build.gradle
Areek Zillur fadd661738 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
2016-11-07 15:47:52 -05:00

27 lines
553 B
Groovy

apply plugin: 'elasticsearch.build'
dependencies {
compile project(':x-plugins:elasticsearch')
compile "org.elasticsearch:elasticsearch:${version}"
testCompile "org.elasticsearch.test:framework:${version}"
}
project.forbiddenPatterns {
exclude '**/*.key'
}
dependencyLicenses.enabled = false
task buildZip(type: Zip, dependsOn: jar) {
String parentDir = "license-tools-${version}"
into(parentDir + '/lib') {
from jar
from configurations.runtime
}
into(parentDir + '/bin') {
from 'bin'
}
}
assemble.dependsOn buildZip