diff --git a/buildSrc/src/main/java/org/elasticsearch/gradle/test/rest/RestResourcesPlugin.java b/buildSrc/src/main/java/org/elasticsearch/gradle/test/rest/RestResourcesPlugin.java index 3cdc4d24dd3..fb2f2264a07 100644 --- a/buildSrc/src/main/java/org/elasticsearch/gradle/test/rest/RestResourcesPlugin.java +++ b/buildSrc/src/main/java/org/elasticsearch/gradle/test/rest/RestResourcesPlugin.java @@ -89,7 +89,7 @@ public class RestResourcesPlugin implements Plugin { // tests Configuration testConfig = project.getConfigurations().create("restTestConfig"); - Configuration xpackTestConfig = project.getConfigurations().create("restXpackTest"); + Configuration xpackTestConfig = project.getConfigurations().create("restXpackTestConfig"); project.getConfigurations().create("restTests"); project.getConfigurations().create("restXpackTests"); Provider copyRestYamlTestTask = project.getTasks() @@ -108,10 +108,6 @@ public class RestResourcesPlugin implements Plugin { .project(Map.of("path", ":x-pack:plugin", "configuration", "restXpackTests")); project.getDependencies().add(task.xpackConfig.getName(), restXPackTestdependency); task.dependsOn(task.xpackConfig); - // watcher - Dependency restWatcherTests = project.getDependencies() - .project(Map.of("path", ":x-pack:plugin:watcher:qa:rest", "configuration", "restXpackTests")); - project.getDependencies().add(task.xpackConfig.getName(), restWatcherTests); } else { Dependency dependency = project.getDependencies() .create("org.elasticsearch:rest-api-spec:" + VersionProperties.getElasticsearch()); diff --git a/x-pack/plugin/watcher/qa/with-security/build.gradle b/x-pack/plugin/watcher/qa/with-security/build.gradle index 245a1800fd5..244242b2c55 100644 --- a/x-pack/plugin/watcher/qa/with-security/build.gradle +++ b/x-pack/plugin/watcher/qa/with-security/build.gradle @@ -5,6 +5,7 @@ apply plugin: 'elasticsearch.rest-test' dependencies { testCompile project(':x-pack:qa') testCompile project(path: ':x-pack:plugin:watcher:qa:rest', configuration: 'testArtifacts') + restXpackTestConfig project(path: ':x-pack:plugin:watcher:qa:rest', configuration: 'restXpackTests') } restResources {