Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
List the license of each of your dependencies.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
src/leiningen
.gitignore
README.md
project.clj

README.md

lein-licenses

A Leiningen plugin to list the license of each of your dependencies.

Installation

Put

[lein-licenses "0.2.0"]

into the :plugins vector of your :user profile.

(Not compatible with Leiningen 1.x.)

Usage

Run lein licenses in your project directory.

Pass :csv or :edn to change output format:

lein licenses :edn

Lookup order

  1. pom.xml inside the jar, including <parent> declarations.
  2. <artifact>.pom file, including <parent> declarations.
  3. License files (LICENCE, LICENCE.txt, etc) inside the jar.
  4. fallbacks.edn in the project directory.

Fallbacks

Fallbacks are only used if all other locations failed.

Example fallbacks.edn file could be found in the examples directory.

License name normalisation

Since license names don’t have any specific format, it’s not uncommon to get different names for the same license. Normalisation mechanism checks each license string against a map of synonyms defined in synonyms.edn, and returns a canonical license name on match.

Example synonyms.edn is available in examples directory.

Example

$ lein licenses # in the leiningen-core library
nekohtml/xercesMinimal - Unknown
org.apache.maven.wagon/wagon-http - The Apache Software License, Version 2.0
org.sonatype.aether/aether-connector-file - Eclipse Public License, Version 1.0
classlojure - Unknown
org.codehaus.plexus/plexus-interpolation - The Apache Software License, Version 2.0
org.sonatype.sisu/sisu-inject-bean - The Apache Software License, Version 2.0
org.codehaus.plexus/plexus-component-annotations - The Apache Software License, Version 2.0
org.codehaus.plexus/plexus-utils - The Apache Software License, Version 2.0
commons-logging - The Apache Software License, Version 2.0
com.cemerick/pomegranate - Eclipse Public License 1.0
org.apache.maven/maven-model-builder - The Apache Software License, Version 2.0
org.clojure/tools.macro - Eclipse Public License 1.0
org.sonatype.aether/aether-util - Eclipse Public License, Version 1.0
nekohtml - Apache License
org.apache.maven/maven-aether-provider - The Apache Software License, Version 2.0
org.sonatype.aether/aether-api - Eclipse Public License, Version 1.0
org.apache.maven.wagon/wagon-http-shared - The Apache Software License, Version 2.0
commons-codec - /*
org.clojure/clojure - Eclipse Public License 1.0
org.codehaus.plexus/plexus-classworlds - The Apache Software License, Version 2.0
org.sonatype.aether/aether-impl - Eclipse Public License, Version 1.0
org.sonatype.sisu/sisu-guice - Apache License
robert/hooke - Unknown
org.apache.maven/maven-repository-metadata - The Apache Software License, Version 2.0
org.sonatype.aether/aether-spi - Eclipse Public License, Version 1.0
commons-httpclient - Apache License
useful - Unknown
org.apache.maven/maven-model - The Apache Software License, Version 2.0
org.apache.maven.wagon/wagon-provider-api - The Apache Software License, Version 2.0
org.sonatype.aether/aether-connector-wagon - Eclipse Public License, Version 1.0
org.sonatype.sisu/sisu-inject-plexus - Eclipse Public License, Version 1.0
ordered - Unknown

License

Copyright © 2012 Phil Hagelberg

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.