apply plugin: 'elasticsearch.esplugin'

esplugin {
  name 'x-pack-ilm'
  description 'Elasticsearch Expanded Pack Plugin - Index Lifecycle Management'
  classname 'org.elasticsearch.xpack.ilm.IndexLifecycle'
  extendedPlugins = ['x-pack-core']
  hasNativeController false
  requiresKeystore true
}
archivesBaseName = 'x-pack-ilm'

dependencies {
  compileOnly project(path: xpackModule('core'), configuration: 'default')
  testImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
}

// add all sub-projects of the qa sub-project
gradle.projectsEvaluated {
  project.subprojects
    .find { it.path == project.path + ":qa" }
    .subprojects
    .findAll { it.path.startsWith(project.path + ":qa") }
    .each { check.dependsOn it.check }
}

integTest.enabled = false