lice-comb.lein
Functionality related to combing Leiningen dependency sequences for license information.
dep->expressions
(dep->expressions dep)
Returns a set of SPDX expressions (String
s) for dep
. See dep->expressions-info for details.
dep->expressions-info
(dep->expressions-info dep)
Returns an expressions-info map for dep
, a Leiningen style dep (a vector of the form [groupId/artifactId "version"]
), or nil
if or no expressions were found.
deps->expressions
(deps->expressions deps)
Returns a map of sets of SPDX expressions (String
s) for each Leiningen style dep in deps
. See deps->expressions-info for details.
deps->expressions-info
(deps->expressions-info deps)
Returns a map of expressions-info maps for each Leiningen style dep in deps
. Each key in the map is a value from deps
, and the associated value is the expressions-info map for that dep (which will be nil
if no expressions were found).
init!
(init!)
Initialises this namespace upon first call (and does nothing on subsequent calls), returning nil. Consumers of this namespace are not required to call this fn, as initialisation will occur implicitly anyway; it is provided to allow explicit control of the cost of initialisation to callers who need it.
Note: this method may have a substantial performance cost.