clojars and licences

17 views
Skip to first unread message

bOR_

unread,
Dec 1, 2009, 10:49:20 AM12/1/09
to Clojure
How in clojars do I attach a licence to the jar? I'm about to
redistribute a BSD-licensed jarfile to clojars, but I'm not sure how I
can make sure that the licence also gets redistributed. Are these
things embedded in jar files by default?

(the jar in question is automaton-1.11.jar)

Alex Osborne

unread,
Dec 1, 2009, 5:41:19 PM12/1/09
to clo...@googlegroups.com
bOR_ <boris....@gmail.com> writes:

> How in clojars do I attach a licence to the jar? I'm about to
> redistribute a BSD-licensed jarfile to clojars, but I'm not sure how I
> can make sure that the licence also gets redistributed. Are these
> things embedded in jar files by default?

I think it's quite common to put them in the jar. So the clause from
the license is:

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

I'd say that putting it in the jar would satisfy "other materials
provided with the distribution". Note you can also specify a license
section in the POM (though that wouldn't satisfy the license):

<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

At some point in the future I intend to have Clojars read that also
check for "COPYING" and "LICENSE" files in the uploaded jar and display
the license on the Clojars per-jar page.

Alex Osborne

unread,
Dec 1, 2009, 5:43:32 PM12/1/09
to clo...@googlegroups.com
Oh sorry, I didn't answer your question. It doesn't look like the
license is bundled into the automaton jar, so you just add it before you
upload it:

jar -uvf dist/automaton.jar COPYING

bOR_

unread,
Dec 2, 2009, 6:55:43 AM12/2/09
to Clojure
Thanks for the help! Got it to work.

I did install automaton twice on clojars though, and perhaps
unnecessary so. If I want to import the jar, I need to type (import
'(dk.brics.automaton Automaton RunAutomaton RegExp)) , and when I had
clojars list the dependency only as [automaton "1.11.2"] there was no
hint anywhere that you needed to prepend dk.brics before it in the
import, so I reinstalled the jar in clojars as [dk.brics.automaton/
automaton "1.11.2"].



Reply all
Reply to author
Forward
0 new messages