Replies: 1 comment 1 reply
-
I'm not sure first is a good measure. The fact that you have a valid SPDX name and include URL is something of a miracle. Usually it's the opposite. When I started the project I chose name as the mechanism and was blown away by how bad the data is. Probably 99% of the artifacts I sampled had a non-SPDX string. When I checked URLs the invalid numbers were something like 15-30%. There's a lot of copy/pasta in licenses. Hell, I haven't started a project in 10+ years without just Additionally, one thing we wanted to support was non-SPDX licenses. If you use proprietary libraries (like Google Play Services SDKs) we found they often point to a valid URL. For internal artifacts we throught a URL was also an easy way to allow your own stuff (but you could also use a groupId exception). I think it would take much more data to convince me that name makes sense. Maybe we can think about what it means to use it as a fallback, but there's a lot of edge cases to consider. |
Beta Was this translation helpful? Give feedback.
-
At the moment, if a url is set in the pom file, it is preferred to resolve the spdx. But often, the url is "wrong" (points to an invalid fallback url or to a custom hosted license text). Instead, the license name often matches the spdx identifier. So do you want to keep the current logic in
licensee/src/main/kotlin/app/cash/licensee/licenses.kt
Line 53 in 5561100
Beta Was this translation helpful? Give feedback.
All reactions