Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 87 lines (64 sloc) 3.388 kB
d473907 @technomancy Initial commit.
authored
1 # lein-licenses
2
3 A Leiningen plugin to list the license of each of your dependencies.
4
0af0566 @arr-ee Update README.md
arr-ee authored
5 ## Installation
c5158ef @technomancy Add example.
authored
6
0af0566 @arr-ee Update README.md
arr-ee authored
7 Put
8 ```clojure
9 [lein-licenses "0.2.0"]
10 ```
11
12 into the `:plugins` vector of your `:user` profile.
d473907 @technomancy Initial commit.
authored
13
14 (Not compatible with Leiningen 1.x.)
15
0af0566 @arr-ee Update README.md
arr-ee authored
16 ## Usage
17
18 Run `lein licenses` in your project directory.
19
20 Pass `:csv` or `:edn` to change output format:
21
22 ```
23 lein licenses :edn
24 ```
25
26 ## Lookup order
27
28 1. `pom.xml` inside the jar, including `<parent>` declarations.
29 2. `<artifact>.pom` file, including `<parent>` declarations.
30 3. License files (`LICENCE`, `LICENCE.txt`, etc) inside the jar.
31 4. `fallbacks.edn` in the project directory.
32
33 ## Fallbacks
34
35 Fallbacks are only used if all other locations failed.
36
37 Example `fallbacks.edn` file could be found in the `examples` directory.
38
39 ## License name normalisation
40
41 Since license names don’t have any specific format, it’s not uncommon to get different names for the same license.
42 Normalisation mechanism checks each license string against a map of synonyms defined in `synonyms.edn`, and returns a canonical license name on match.
43
44 Example `synonyms.edn` is available in `examples` directory.
c5158ef @technomancy Add example.
authored
45
46 ## Example
47
48 $ lein licenses # in the leiningen-core library
49 nekohtml/xercesMinimal - Unknown
50 org.apache.maven.wagon/wagon-http - The Apache Software License, Version 2.0
51 org.sonatype.aether/aether-connector-file - Eclipse Public License, Version 1.0
52 classlojure - Unknown
53 org.codehaus.plexus/plexus-interpolation - The Apache Software License, Version 2.0
54 org.sonatype.sisu/sisu-inject-bean - The Apache Software License, Version 2.0
55 org.codehaus.plexus/plexus-component-annotations - The Apache Software License, Version 2.0
56 org.codehaus.plexus/plexus-utils - The Apache Software License, Version 2.0
57 commons-logging - The Apache Software License, Version 2.0
58 com.cemerick/pomegranate - Eclipse Public License 1.0
59 org.apache.maven/maven-model-builder - The Apache Software License, Version 2.0
60 org.clojure/tools.macro - Eclipse Public License 1.0
61 org.sonatype.aether/aether-util - Eclipse Public License, Version 1.0
62 nekohtml - Apache License
63 org.apache.maven/maven-aether-provider - The Apache Software License, Version 2.0
64 org.sonatype.aether/aether-api - Eclipse Public License, Version 1.0
65 org.apache.maven.wagon/wagon-http-shared - The Apache Software License, Version 2.0
66 commons-codec - /*
67 org.clojure/clojure - Eclipse Public License 1.0
68 org.codehaus.plexus/plexus-classworlds - The Apache Software License, Version 2.0
69 org.sonatype.aether/aether-impl - Eclipse Public License, Version 1.0
70 org.sonatype.sisu/sisu-guice - Apache License
71 robert/hooke - Unknown
72 org.apache.maven/maven-repository-metadata - The Apache Software License, Version 2.0
73 org.sonatype.aether/aether-spi - Eclipse Public License, Version 1.0
74 commons-httpclient - Apache License
75 useful - Unknown
76 org.apache.maven/maven-model - The Apache Software License, Version 2.0
77 org.apache.maven.wagon/wagon-provider-api - The Apache Software License, Version 2.0
78 org.sonatype.aether/aether-connector-wagon - Eclipse Public License, Version 1.0
79 org.sonatype.sisu/sisu-inject-plexus - Eclipse Public License, Version 1.0
80 ordered - Unknown
81
d473907 @technomancy Initial commit.
authored
82 ## License
83
84 Copyright © 2012 Phil Hagelberg
85
86 Distributed under the Eclipse Public License, the same as Clojure.
Something went wrong with that request. Please try again.