Skip to content

Commit c4af3c7

Browse files
Include 'sourceUrl' column in dependencies report even when empty (#57163)
Co-authored-by: Elastic Machine <[email protected]>
1 parent 2451094 commit c4af3c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/DependenciesInfoTask.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,14 @@ class DependenciesInfoTask extends ConventionTask {
145145
// As we have the license file, we create a Custom entry with the URL to this license file.
146146
final gitBranch = System.getProperty('build.branch', 'master')
147147
final String githubBaseURL = "https://raw.githubusercontent.com/elastic/elasticsearch/${gitBranch}/"
148-
licenseType = "${licenseInfo.identifier};${license.getCanonicalPath().replaceFirst('.*/elasticsearch/', githubBaseURL)}"
148+
licenseType = "${licenseInfo.identifier};${license.getCanonicalPath().replaceFirst('.*/elasticsearch/', githubBaseURL)},"
149149
} else {
150-
licenseType = licenseInfo.identifier
150+
licenseType = "${licenseInfo.identifier},"
151151
}
152152

153153
if (licenseInfo.sourceRedistributionRequired) {
154154
File sources = getDependencyInfoFile(group, name, 'SOURCES')
155-
licenseType += ",${sources.text.trim()}"
155+
licenseType += "${sources.text.trim()}"
156156
}
157157

158158
return licenseType

0 commit comments

Comments
 (0)