From 73c00a9ce495f4560b5c3e96aef8215456e15211 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 6562b9a40efea..7d9125b18aa37 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")