2015-11-25 10:18:08 -05:00
|
|
|
apply plugin: 'elasticsearch.build'
|
|
|
|
|
|
|
|
dependencies {
|
2020-06-30 09:57:41 -04:00
|
|
|
api project(':x-pack:plugin:core')
|
|
|
|
api project(':server')
|
2020-06-14 16:30:44 -04:00
|
|
|
testImplementation project(':test:framework')
|
2015-11-25 10:18:08 -05:00
|
|
|
}
|
|
|
|
|
2016-07-28 01:38:18 -04:00
|
|
|
project.forbiddenPatterns {
|
|
|
|
exclude '**/*.key'
|
|
|
|
}
|
|
|
|
|
2020-06-18 02:15:50 -04:00
|
|
|
tasks.named("dependencyLicenses").configure { it.enabled = false }
|
2016-08-16 17:23:37 -04:00
|
|
|
|
2020-07-31 07:09:04 -04:00
|
|
|
tasks.register("buildZip", Zip) {
|
|
|
|
dependsOn "jar"
|
2020-06-23 03:11:46 -04:00
|
|
|
String parentDir = "license-tools-${archiveVersion}"
|
2016-11-07 15:21:01 -05:00
|
|
|
into(parentDir + '/lib') {
|
2016-08-16 17:23:37 -04:00
|
|
|
from jar
|
2020-06-30 09:57:41 -04:00
|
|
|
from configurations.runtimeClasspath
|
2018-07-24 11:53:04 -04:00
|
|
|
}
|
2016-11-07 15:21:01 -05:00
|
|
|
into(parentDir + '/bin') {
|
2016-08-16 17:23:37 -04:00
|
|
|
from 'bin'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-31 07:09:04 -04:00
|
|
|
tasks.named("assemble").configure { dependsOn("buildZip") }
|