apply plugin: 'elasticsearch.internal-es-plugin'
apply plugin: 'elasticsearch.test-with-dependencies'
apply plugin: 'elasticsearch.internal-java-rest-test'

esplugin {
  description = 'The Multi-Project module adds functionality for working with multiple projects in ES (for testing purposes).'
  classname = 'org.elasticsearch.multiproject.TestOnlyMultiProjectPlugin'
}

dependencies {
  testImplementation project(path: ':test:test-clusters')
  clusterModules project(':test:external-modules:test-multi-project')
  clusterModules project(':modules:analysis-common')
  clusterModules project(":modules:ingest-common")
}

tasks.named("javaRestTest").configure {
  enabled = buildParams.snapshotBuild
  systemProperty "tests.multi_project.enabled", true
}
