--- a/core/src/commonMain/kotlin/licensee/LicenseeParser.kt Mon May 04 18:53:53 2026 -0400
+++ b/core/src/commonMain/kotlin/licensee/LicenseeParser.kt Mon May 04 23:44:20 2026 -0400
@@ -45,11 +45,11 @@
}
val items: List<LicenseItem> = json.decodeFromString(buffered.readUtf8())
- return items.associate {
- val name = it.name ?: "${it.groupId}:${it.artifactId}"
- val license = it.spdxLicenses.firstNotNullOfOrNull {
+ return items.associate { item ->
+ val name = item.name ?: "${item.groupId}:${item.artifactId}"
+ val license = item.spdxLicenses.firstNotNullOfOrNull {
"${it.name}\n\n${it.url}"
- } ?: it.unknownLicenses.firstNotNullOf {
+ } ?: item.unknownLicenses.firstNotNullOf {
"${it.name}\n\n${it.url}"
}
name to license