build.gradle 882 B

1234567891011121314151617181920
  1. // this file must exist so that qa projects are found
  2. // by the elasticsearch x-plugins include mechanism
  3. import org.elasticsearch.gradle.test.RestIntegTestTask
  4. subprojects {
  5. // HACK: please fix this
  6. // we want to add the rest api specs for xpack to qa tests, but we
  7. // need to wait until after the project is evaluated to only apply
  8. // to those that rest tests. this used to be done automatically
  9. // when xpack was a plugin, but now there is no place with xpack as a module.
  10. // instead, we should package these and make them easy to use for rest tests,
  11. // but currently, they must be copied into the resources of the test runner.
  12. project.tasks.withType(RestIntegTestTask) {
  13. File xpackResources = new File(xpackProject('plugin').projectDir, 'src/test/resources')
  14. project.copyRestSpec.from(xpackResources) {
  15. include 'rest-api-spec/api/**'
  16. }
  17. }
  18. }