apply plugin: 'elasticsearch.internal-es-plugin'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
    name = 'x-pack-async-search'
    description = 'A module which allows to track the progress of a search asynchronously.'
    classname ='org.elasticsearch.xpack.search.AsyncSearch'
    extendedPlugins = ['x-pack-core']
}
base {
  archivesName = 'x-pack-async-search'
}

addQaCheckDependencies(project)

dependencies {
  compileOnly project(":server")
  testImplementation testArtifact(project(':server'))

  compileOnly project(path: xpackModule('core'))
  testImplementation(testArtifact(project(xpackModule('core'))))
  testImplementation project(path: xpackModule('async'))

  internalClusterTestImplementation project(":modules:reindex")
}


