Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ergonomics: display the errors as Kotlin configuration code? #375

Open
martinbonnin opened this issue Nov 8, 2024 · 0 comments
Open

Ergonomics: display the errors as Kotlin configuration code? #375

martinbonnin opened this issue Nov 8, 2024 · 0 comments

Comments

@martinbonnin
Copy link

Currently if licensee fails, I get an error like this:

 - ERROR: SPDX identifier 'Apache-2.0' is NOT allowed
 - ERROR: SPDX identifier 'Apache-2.0' is NOT allowed
 - ERROR: SPDX identifier 'Apache-2.0' is NOT allowed
 - ERROR: SPDX identifier 'Apache-2.0' is NOT allowed
 - ERROR: SPDX identifier 'Apache-2.0' is NOT allowed
 - ERROR: SPDX identifier 'Apache-2.0' is NOT allowed
 - ERROR: SPDX identifier 'Apache-2.0' is NOT allowed
 - ERROR: Unknown license URL 'http://www.eclipse.org/org/documents/edl-v10.php' is NOT allowed
 - ERROR: Unknown license URL 'http://www.eclipse.org/org/documents/edl-v10.php' is NOT allowed
 - ERROR: SPDX identifier 'Apache-2.0' is NOT allowed
 - ERROR: Unknown license URL 'https://www.bouncycastle.org/licence.html' is NOT allowed
 - ERROR: Unknown license URL 'https://www.bouncycastle.org/licence.html' is NOT allowed
 - ...

Would it be possible/desirable to display it as plain Kotlin that I can copy/pasta (and possibly edit) in my buildscript?

licensee {
  allow("Apache-2.0")

  allowUrl("http://www.eclipse.org/org/documents/edl-v10.php")
  allowUrl("https://www.bouncycastle.org/licence.html")
}

Would make the task of onboarding licensee easier.

@martinbonnin martinbonnin changed the title Ergonomics: display the errorq as Kotlin configuration code? Ergonomics: display the errors as Kotlin configuration code? Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant