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

esplugin {
  name = 'x-pack-autoscaling'
  description = 'Elasticsearch Expanded Pack Plugin - Autoscaling'
  classname ='org.elasticsearch.xpack.autoscaling.Autoscaling'
  extendedPlugins = ['x-pack-core']
  hasNativeController =false
  requiresKeystore =true
}
base {
  archivesName = 'x-pack-autoscaling'
}

dependencies {
  compileOnly project(path: xpackModule('core'))
  testImplementation(testArtifact(project(xpackModule('core'))))
  testImplementation project(':modules:data-streams')
  testImplementation project(path: xpackModule('blob-cache'))
  testImplementation project(path: xpackModule('searchable-snapshots'))
  testImplementation project(path: xpackModule('ilm'))
  testImplementation project(path: xpackModule('slm'))
  testImplementation project(path: xpackModule('ccr'))

  testImplementation "com.fasterxml.jackson.core:jackson-databind:${versions.jackson}"
}

addQaCheckDependencies(project)
