From 9dddce2e085fa027b88136d1ae643f81d0b21b51 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Thu, 15 Jun 2017 20:50:31 +0200 Subject: [PATCH] Add analysis-common as test dependency to xpack plugin module. Original commit: elastic/x-pack-elasticsearch@247258503721c6542ab0f6219c8b0919b688c8a8 --- plugin/build.gradle | 1 + .../java/org/elasticsearch/test/SecuritySettingsSource.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/build.gradle b/plugin/build.gradle index 51e6ee062a1..fed8fb48aeb 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -89,6 +89,7 @@ dependencies { testCompile 'org.slf4j:slf4j-api:1.6.2' testCompile project(path: ':modules:reindex', configuration: 'runtime') testCompile project(path: ':modules:parent-join', configuration: 'runtime') + testCompile project(path: ':modules:analysis-common', configuration: 'runtime') } // make LicenseSigner available for testing signed licenses diff --git a/plugin/src/test/java/org/elasticsearch/test/SecuritySettingsSource.java b/plugin/src/test/java/org/elasticsearch/test/SecuritySettingsSource.java index 9382245639f..99526041295 100644 --- a/plugin/src/test/java/org/elasticsearch/test/SecuritySettingsSource.java +++ b/plugin/src/test/java/org/elasticsearch/test/SecuritySettingsSource.java @@ -6,6 +6,7 @@ package org.elasticsearch.test; import org.elasticsearch.ElasticsearchException; +import org.elasticsearch.analysis.common.CommonAnalysisPlugin; import org.elasticsearch.common.Strings; import org.elasticsearch.common.io.PathUtils; import org.elasticsearch.common.settings.SecureString; @@ -155,7 +156,7 @@ public class SecuritySettingsSource extends ClusterDiscoveryConfiguration.Unicas @Override public Collection> nodePlugins() { return Arrays.asList(xpackPluginClass(), - Netty4Plugin.class, ReindexPlugin.class); + Netty4Plugin.class, ReindexPlugin.class, CommonAnalysisPlugin.class); } @Override