cashapp / licensee

Gradle plugin which validates the licenses of your dependency graph match what you expect
https://cashapp.github.io/licensee/docs/1.x/
Apache License 2.0
612 stars 28 forks source link

Add Android Studio license to list of recognized licenses #276

Closed IsakTheHacker closed 6 months ago

IsakTheHacker commented 6 months ago

I get this error when applying the plugin to my Wear OS project:

com.google.android.gms:play-services-base:18.0.1
 - ERROR: Unknown license URL 'https://developer.android.com/studio/terms.html' is NOT allowed
com.google.android.gms:play-services-basement:18.0.0
 - ERROR: Unknown license URL 'https://developer.android.com/studio/terms.html' is NOT allowed
com.google.android.gms:play-services-tasks:18.0.1
 - ERROR: Unknown license URL 'https://developer.android.com/studio/terms.html' is NOT allowed
com.google.android.gms:play-services-wearable:18.1.0
 - ERROR: Unknown license URL 'https://developer.android.com/studio/terms.html' is NOT allowed

In future versions, maybe this license url should be added to the list of recognized licenses

JakeWharton commented 6 months ago

This plugin uses the SPDX license database for its license identifiers which only contains open source licenses. A proprietary license like Google's will not be on the list. You can add the URL as being allowed to your config if you accept its terms. There's no way for us to recognize the URL as a license as it doesn't map to any SPDX identifier.