/*
 * This project contains transport-level requests and responses that are shared between x-pack plugin and qa tests
 */
apply plugin: 'elasticsearch.build'

description = 'Request and response objects shared by the Elasticsearch plugin and qa tests'

dependencies {
  /* We'd like to just depend on xcontent but there are some bits of
   * :server that we rely on.... */
  api(project(':server')) {
    transitive = false
  }
  api(project(':libs:core')) {
    transitive = false
  }
  api(project(':libs:x-content')) {
    transitive = false
  }
  api project(':x-pack:plugin:core')
  api project(':x-pack:plugin:ql')
  api project(':x-pack:plugin:sql:sql-proto')

  testImplementation project(":test:framework")
  testImplementation(project(xpackModule('ql:test-fixtures')))
}

tasks.named('forbiddenApisMain').configure {
  //sql does not depend on server, so only jdk signatures should be checked
  replaceSignatureFiles 'jdk-signatures'
}

tasks.named("dependencyLicenses").configure {
  mapping from: /jackson-.*/, to: 'jackson'
  mapping from: /lucene-.*/, to: 'lucene'
}
