/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0; you may not use this file except in compliance with the Elastic License
 * 2.0.
 */

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

esplugin {
  name = 'x-pack-fleet'
  description = 'Elasticsearch Expanded Pack Plugin - Plugin exposing APIs for Fleet system indices'
  classname ='org.elasticsearch.xpack.fleet.Fleet'
  extendedPlugins = ['x-pack-core']
}

dependencies {
  compileOnly project(path: xpackModule('core'))
  testImplementation(testArtifact(project(xpackModule('core'))))
  javaRestTestImplementation(project(path: xpackModule('core')))
  javaRestTestImplementation(testArtifact(project(xpackModule('core'))))
  compileOnly project(path: xpackModule('ilm'))
  testImplementation project(path: xpackModule('mapper-version'))

  clusterModules project(xpackModule('ilm'))
  clusterModules project(xpackModule('mapper-version'))
  clusterModules project(xpackModule('inference'))
  clusterModules project(':modules:data-streams')
}
