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

Ability to specify license information for unmanaged dependencies #6

Open
stevedlawrence opened this issue Dec 4, 2014 · 2 comments

Comments

@stevedlawrence
Copy link

Right now, it looks like license information only comes from managed dependencies via Ivy. This means that any unmanaged dependencies are not part of the report. It would be nice if there was an easy way to specify the license information in the sbt configuration for unmanaged dependencies so the license report could be complete.

@metasim
Copy link
Member

metasim commented Aug 11, 2015

+1 For this.

@metasim
Copy link
Member

metasim commented Aug 11, 2015

@stevedlawrence Here's one approach to injecting non-managed licenses:

updateLicenses := {
  val report = updateLicenses.value
  val mit = LicenseInfo(LicenseCategory.MIT, "MIT License", "http://opensource.org/licenses/MIT")
  val configs = Set("runtime")
  val extras = Seq(
    DepLicense(DepModuleInfo("javascript", "angular", "1.3.0"), mit, configs),
    DepLicense(DepModuleInfo("javascript", "amsul-datepicker", "3.5.6"), mit, configs)
  )
  report.copy(licenses = report.licenses ++ extras)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants