Ⓢ
Size: a a a
Ⓢ
VS
VS
Ⓢ
VS
<license>
теги в pom.xml.<license>
уже присутствует, то и parent качать не нужно.VV
class LicenseDetector(private val loader: PomLoader) {
fun LicenseTag.parse(): License = License.`0BSD`
suspend fun detect(id: ComponentIdentifier): License {
val pom = loader.load(id)
val licenses = pom.licenses
if (licenses != null) {
return licenses.licenses.first().parse()
}
val parentId = pom.parentId ?: TODO("License not found for $id, parent pom is missing as well")
return detect(parentId)
}
}
VS
parentId = pom.
parentId ?:
TODO(
"License not found for $id
, parent pom is missing as well")
return detect(parentId)
VV
VS
VV
VS
VV
VL
AM
VL
AM
AM
VL
AM
SE