From 1559f85c7348321601455f60bd533ec754b83be2 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Fri, 16 Jun 2017 17:19:24 -0400 Subject: [PATCH] Remove assemble from build task when assemble removed Removes the `assemble` task from the `build` task when we have removed `assemble` from the project. We removed `assemble` from projects that aren't published so our releases will be faster. But That broke CI because CI builds with `gradle precommit build` and, it turns out, that `build` includes `check` and `assemble`. With this change CI will only run `check` for projects without an `assemble`. Original commit: elastic/x-pack-elasticsearch@d01b0df1d9cffde02a4114284abc7b6717b0ddca --- plugin/bwc/build.gradle | 2 ++ qa/build.gradle | 1 + 2 files changed, 3 insertions(+) diff --git a/plugin/bwc/build.gradle b/plugin/bwc/build.gradle index 121978a6918..1d283ab423a 100644 --- a/plugin/bwc/build.gradle +++ b/plugin/bwc/build.gradle @@ -31,7 +31,9 @@ subprojects { } if (enabled) { apply plugin: 'distribution' + // Not published so no need to assemble tasks.remove(assemble) + build.dependsOn.remove('assemble') def (String major, String minor, String bugfix) = bwcVersion.split('\\.') def (String currentMajor, String currentMinor, String currentBugfix) = version.split('\\.') diff --git a/qa/build.gradle b/qa/build.gradle index b513a872316..4a007422f38 100644 --- a/qa/build.gradle +++ b/qa/build.gradle @@ -6,6 +6,7 @@ gradle.projectsEvaluated { Task assemble = project.tasks.findByName('assemble') if (assemble) { project.tasks.remove(assemble) + project.build.dependsOn.remove('assemble') } } }