apply plugin: 'elasticsearch.internal-cluster-test'
apply plugin: 'elasticsearch.internal-es-plugin'
apply plugin: 'elasticsearch.internal-test-artifact'

esplugin {
  name = 'snapshot-based-recoveries'
  description = 'A plugin that enables snapshot based recoveries'
  classname ='org.elasticsearch.xpack.snapshotbasedrecoveries.SnapshotBasedRecoveriesPlugin'
  extendedPlugins = ['x-pack-core']
}
base {
  archivesName = 'x-pack-snapshot-based-recoveries'
}

dependencies {
  compileOnly project(":server")
  compileOnly project(path: xpackModule('core'))

  testImplementation(testArtifact(project(xpackModule('core'))))
  internalClusterTestImplementation(testArtifact(project(xpackModule('core'))))
}

addQaCheckDependencies(project)
