apply plugin: 'elasticsearch.internal-java-rest-test'

dependencies {
  javaRestTestImplementation project(path: xpackModule('core'))
  javaRestTestImplementation project(path: xpackModule('inference'))
  clusterPlugins project(':x-pack:plugin:inference:qa:test-service-plugin')
  // Added this to have access to MockWebServer within the tests
  javaRestTestImplementation(testArtifact(project(xpackModule('core'))))
}

tasks.named("javaRestTest").configure {
  usesDefaultDistribution("to be triaged")
}
