Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Support printing all available licenses, not just the first #4

Open
mwmitchell opened this issue Sep 29, 2015 · 3 comments
Open

Support printing all available licenses, not just the first #4

mwmitchell opened this issue Sep 29, 2015 · 3 comments

Comments

@mwmitchell
Copy link

Some libraries give the option of choosing a license that best suites the needs of the consumer. For example, the UnboundID LDAP SDK has 3. Gradle has a license plugin that supports this, as well as npm (the other tools we're using in our stack). It would be useful to also have lein-licenses support printing all possible licenses from dependencies too.

An alternative to this would be to provide an option (function) in project.clj to allow customization of what's printed for a given lib. So I could do: (fn [lib licenses] (if (.contains lib "foo") "bar" licenses))

@arr-ee
Copy link
Collaborator

arr-ee commented Sep 29, 2015

Interesting, I’ve never seen this before.

I agree that multiple licenses should be supported, and that we should support overrides (alongside with fallbacks). Also we probably should introduce tests at some point :D

I’ll try to look into this some time next week, but meanwhile patches are very much welcome.

(for future reference: http://central.maven.org/maven2/com/unboundid/unboundid-ldapsdk/3.0.0/unboundid-ldapsdk-3.0.0.pom)

@kenrestivo-stem
Copy link

The multiple-license thing bit us too, incorrectly reporting an LGPL license that is dual-licensed under Apache (and so is fine).

@pmonks
Copy link

pmonks commented Jun 23, 2020

Note that SPDX (see issue #7) provides a standard mechanism for representing the various ways that a work can be multiply-licensed: SPDX license expressions.

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

No branches or pull requests

4 participants