From eb30cf5c89e7ad0581020eeae861a98d8435d354 Mon Sep 17 00:00:00 2001 From: Jake Landis Date: Fri, 17 Apr 2020 12:38:01 -0500 Subject: [PATCH] [7.x] Move Watcher config out of RestResourcesPlugin (#55136) (#55336) --- .../elasticsearch/gradle/test/rest/RestResourcesPlugin.java | 6 +----- x-pack/plugin/watcher/qa/with-security/build.gradle | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) 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 {