This commit moves the CCR REST API specification out of the CCR sub-project to locate them with the rest of the REST API specifications for X-Pack.
@@ -1,3 +1,13 @@
+import org.elasticsearch.gradle.test.RestIntegTestTask
+
+subprojects {
+ project.tasks.withType(RestIntegTestTask) {
+ final File xPackResources = new File(xpackProject('plugin').projectDir, 'src/test/resources')
+ project.copyRestSpec.from(xPackResources) {
+ include 'rest-api-spec/api/**'
+ }
+}
/* Remove assemble on all qa projects because we don't need to publish
* artifacts for them. */