apply plugin: 'elasticsearch.internal-es-plugin'
apply plugin: 'elasticsearch.internal-cluster-test'
esplugin {
  name = 'x-pack-downsample'
  description = 'Elasticsearch Expanded Pack Plugin - Downsample'
  classname ='org.elasticsearch.xpack.downsample.Downsample'
  extendedPlugins = ['x-pack-aggregate-metric']
}

base {
  archivesName = 'x-pack-downsample'
}

dependencies {
  compileOnly project(path: xpackModule('core'))
  testImplementation project(':modules:data-streams')
  testImplementation project(path: xpackModule('ilm'))
  compileOnly project(path: xpackModule('mapper-aggregate-metric'))
  testImplementation(testArtifact(project(xpackModule('core'))))
  testImplementation project(xpackModule('ccr'))
}

addQaCheckDependencies(project)
