From e6bdfea47454b22d11670e84bc9bace3fe21e599 Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Wed, 3 Apr 2019 13:19:29 +0200 Subject: [PATCH] first commit --- x-pack/plugin/enrich/build.gradle | 25 +++++++++++++++++++ .../xpack/enrich/EnrichPlugin.java | 21 ++++++++++++++++ .../rest-api-spec/test/xpack/10_basic.yml | 1 + 3 files changed, 47 insertions(+) create mode 100644 x-pack/plugin/enrich/build.gradle create mode 100644 x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichPlugin.java diff --git a/x-pack/plugin/enrich/build.gradle b/x-pack/plugin/enrich/build.gradle new file mode 100644 index 00000000000..a8c7a3c8407 --- /dev/null +++ b/x-pack/plugin/enrich/build.gradle @@ -0,0 +1,25 @@ +evaluationDependsOn(xpackModule('core')) + +apply plugin: 'elasticsearch.esplugin' +esplugin { + name 'x-pack-enrich' + description 'Elasticsearch Expanded Pack Plugin - Enrich' + classname 'org.elasticsearch.xpack.enrich.EnrichPlugin' + extendedPlugins = ['x-pack-core'] +} +archivesBaseName = 'x-pack-enrich' + +dependencies { + compileOnly "org.elasticsearch:elasticsearch:${version}" + + compileOnly project(path: xpackModule('core'), configuration: 'default') + testCompile project(path: xpackModule('core'), configuration: 'testArtifacts') +} + +run { + plugin xpackModule('core') +} + +// No tests yet: +integTest.enabled = false +unitTest.enabled = false diff --git a/x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichPlugin.java b/x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichPlugin.java new file mode 100644 index 00000000000..a3b4cb85a19 --- /dev/null +++ b/x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichPlugin.java @@ -0,0 +1,21 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License; + * you may not use this file except in compliance with the Elastic License. + */ +package org.elasticsearch.xpack.enrich; + +import org.elasticsearch.ingest.Processor; +import org.elasticsearch.plugins.IngestPlugin; +import org.elasticsearch.plugins.Plugin; + +import java.util.Collections; +import java.util.Map; + +public class EnrichPlugin extends Plugin implements IngestPlugin { + + @Override + public Map getProcessors(Processor.Parameters parameters) { + return Collections.emptyMap(); + } +} diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/test/xpack/10_basic.yml b/x-pack/plugin/src/test/resources/rest-api-spec/test/xpack/10_basic.yml index 514ba618240..c30f650f318 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/test/xpack/10_basic.yml +++ b/x-pack/plugin/src/test/resources/rest-api-spec/test/xpack/10_basic.yml @@ -16,6 +16,7 @@ - contains: { nodes.$master.modules: { name: x-pack-ccr } } - contains: { nodes.$master.modules: { name: x-pack-core } } - contains: { nodes.$master.modules: { name: x-pack-deprecation } } + - contains: { nodes.$master.modules: { name: x-pack-enrich } } - contains: { nodes.$master.modules: { name: x-pack-graph } } - contains: { nodes.$master.modules: { name: x-pack-ilm } } - contains: { nodes.$master.modules: { name: x-pack-logstash } }