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
626 stars 28 forks source link

Ensure fallback IDs are always valid #250

Closed JakeWharton closed 1 year ago

JakeWharton commented 1 year ago

Eagerly look up their associated license info so that invalid configurations fail at initialization time. Add a test to ensure initialization always happens during development.

Closes #224

JakeWharton commented 1 year ago
java.lang.AssertionError: No SPDX identifier 'EPL-2.01' in the embedded set
    at app.cash.licensee.LicensesFallbackKt.putLicense(licensesFallback.kt:103)
    at app.cash.licensee.LicensesFallbackKt.<clinit>(licensesFallback.kt:89)
    at app.cash.licensee.SpdxLicensesTest.fallbackDatabaseLitmusTest(SpdxLicensesTest.kt:33)