From 3555a9424b08a1a4b9b5b65e241dafba615ab2ba Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Mon, 18 May 2020 07:19:40 -0700 Subject: [PATCH] Ensure dependency report task depends on upstream reporting tasks (#56853) --- distribution/build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/distribution/build.gradle b/distribution/build.gradle index 7c5cdaf5b69b4..f56042790939c 100644 --- a/distribution/build.gradle +++ b/distribution/build.gradle @@ -20,6 +20,7 @@ import org.apache.tools.ant.filters.FixCrLfFilter import org.elasticsearch.gradle.ConcatFilesTask +import org.elasticsearch.gradle.DependenciesInfoTask import org.elasticsearch.gradle.MavenFilteringHack import org.elasticsearch.gradle.NoticeTask import org.elasticsearch.gradle.VersionProperties @@ -36,6 +37,7 @@ apply plugin: 'elasticsearch.testclusters' // Concatenates the dependencies CSV files into a single file task generateDependenciesReport(type: ConcatFilesTask) { + dependsOn rootProject.allprojects.collect { it.tasks.withType(DependenciesInfoTask) } files = fileTree(dir: project.rootDir, include: '**/dependencies.csv') headerLine = "name,version,url,license,sourceURL" target = new File(System.getProperty('csv') ?: "${project.buildDir}/reports/dependencies/es-dependencies.csv")