Fix index-lifecycle build

We have to use the shadow configuration now when packaging
index-lifecycle or we duplicate the X-Pack protocol library from core.
This commit is contained in:
Jason Tedor 2018-07-25 13:05:35 -04:00
parent 86928e7d24
commit a75c6a2f57
No known key found for this signature in database
GPG Key ID: FA89F05560F16BC5
2 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,7 @@ subprojects {
ext.projectSubstitutions += [ "org.elasticsearch.plugin:x-pack-core:${version}": xpackModule('core')]
ext.projectSubstitutions += [ "org.elasticsearch.plugin:x-pack-deprecation:${version}": xpackModule('deprecation')]
ext.projectSubstitutions += [ "org.elasticsearch.plugin:x-pack-graph:${version}": xpackModule('graph')]
ext.projectSubstitutions += [ "org.elasticsearch.plugin:x-pack-index-lifecycle:${version}": xpackModule('index-lifecycle')]
ext.projectSubstitutions += [ "org.elasticsearch.plugin:x-pack-logstash:${version}": xpackModule('logstash')]
ext.projectSubstitutions += [ "org.elasticsearch.plugin:x-pack-ml:${version}": xpackModule('ml')]
ext.projectSubstitutions += [ "org.elasticsearch.plugin:x-pack-monitoring:${version}": xpackModule('monitoring')]

View File

@ -13,7 +13,7 @@ esplugin {
archivesBaseName = 'x-pack-index-lifecycle'
dependencies {
compileOnly "org.elasticsearch.plugin:x-pack-core:${version}"
compileOnly project(path: xpackModule('core'), configuration: 'shadow')
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
}