Skip to content

Commit 021eccf

Browse files
swallezl-trotta
authored andcommitted
Fix licenseReport
1 parent 4f6fb2d commit 021eccf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

java-client/build.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ class SpdxReporter(val dest: File) : ReportRenderer {
297297
"The Apache License, Version 2.0" to "Apache-2.0",
298298
"Apache License, Version 2.0" to "Apache-2.0",
299299
"The Apache Software License, Version 2.0" to "Apache-2.0",
300+
"MIT License" to "MIT",
300301
"BSD Zero Clause License" to "0BSD",
301302
"Eclipse Public License 2.0" to "EPL-2.0",
302303
"Eclipse Public License v. 2.0" to "EPL-2.0",
@@ -323,7 +324,11 @@ class SpdxReporter(val dest: File) : ReportRenderer {
323324
val depName = dep.group + ":" + dep.name
324325

325326
val info = LicenseDataCollector.multiModuleLicenseInfo(dep)
326-
val depUrl = info.moduleUrls.first()
327+
val depUrl = if (depName.startsWith("org.apache.httpcomponents")) {
328+
"https://hc.apache.org/"
329+
} else {
330+
info.moduleUrls.first()
331+
}
327332

328333
val licenseIds = info.licenses.mapNotNull { license ->
329334
license.name?.let {

0 commit comments

Comments
 (0)