tools-licenses.tasks

Clojure tools.build tasks related to dependency licenses.

All of the build tasks return the opts hash map they were passed
(unlike some of the functions in clojure.tools.build.api).

check-asf-policy

(check-asf-policy opts)
Checks your project's dependencies against the ASF's 3rd party license policy
(https://www.apache.org/legal/resolved.html).

:output  -- opt: output format, one of :summary, :detailed, :edn (defaults to
                 :summary)

Note: has the side effect of 'prepping' your project with its transitive
dependencies (i.e. downloading them if they haven't already been downloaded).

licenses

(licenses opts)
Lists all licenses used transitively by the project.

:lib     -- req: a symbol representing the name of your library / project
                 (e.g. com.github.yourusername/yourproject)
:output  -- opt: output format, one of :summary, :detailed, :explain, :edn
                 (defaults to :summary)
:dep     -- opt: a symbol representing the dependency's license to explain
                 Note: required when :output is :explain (and ignored for
                 other outputs)

Note: has the side effect of 'prepping' your project with its transitive
dependencies (i.e. downloading them if they haven't already been downloaded).