Ensure dependency report task depends on upstream reporting tasks (#56853)

This commit is contained in:
Mark Vieira 2020-05-18 07:19:40 -07:00
parent 9ba897fbd6
commit 73c00a9ce4
No known key found for this signature in database
GPG Key ID: CA947EF7E6D4B105
1 changed files with 2 additions and 0 deletions

View File

@ -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")