Hello folks.

I just released a Leiningen plugin that walks your dependencies and
lists the licenses of each. You can see the output below.

This should be helpful for folks needing to do an audit on the licenses
of their projects before releasing. It gets license information from the
pom file, so if you maintain a project that doesn't have its license
exposed programmatically I encourage you to add it. Here's how it looks
using Leiningen in project.clj:

    (defproject lein-licenses "0.1.0"
      :description "List the license of each of your dependencies."
      :url "https://github.com/technomancy/lein-licenses";
      :license {:name "Eclipse Public License"
                :url "http://www.eclipse.org/legal/epl-v10.html"}
      :eval-in-leiningen true)

Just adding a :license map with a :name is enough, but it's best to link
to the full license text with a :url as well.

-Phil

    $ 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

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to