apply plugin: 'elasticsearch.internal-es-plugin'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
  name = 'x-pack-enrich'
  description = 'Elasticsearch Expanded Pack Plugin - Enrich'
  classname ='org.elasticsearch.xpack.enrich.EnrichPlugin'
  extendedPlugins = ['x-pack-core']
}
base {
  archivesName = 'x-pack-enrich'
}

dependencies {
  compileOnly project(path: xpackModule('core'))
  api project(path: ':modules:reindex')
  testImplementation(testArtifact(project(xpackModule('core'))))
  testImplementation project(path: ':modules:ingest-common')
  testImplementation project(path: ':modules:lang-mustache')
  testImplementation project(path: ':modules:legacy-geo')
  testImplementation project(xpackModule('spatial'))
  testImplementation(testArtifact(project(xpackModule('monitoring'))))
  internalClusterTestImplementation project(':modules:rest-root')
}

addQaCheckDependencies(project)
