From a75c6a2f57fe4e1e138016da4963d499ee3fdfae Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Wed, 25 Jul 2018 13:05:35 -0400 Subject: [PATCH] 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. --- x-pack/build.gradle | 1 + x-pack/plugin/index-lifecycle/build.gradle | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/build.gradle b/x-pack/build.gradle index 01ce465fc09..ee555fbd887 100644 --- a/x-pack/build.gradle +++ b/x-pack/build.gradle @@ -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')] diff --git a/x-pack/plugin/index-lifecycle/build.gradle b/x-pack/plugin/index-lifecycle/build.gradle index 7e0169b2b78..635ab6d8829 100644 --- a/x-pack/plugin/index-lifecycle/build.gradle +++ b/x-pack/plugin/index-lifecycle/build.gradle @@ -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') }