Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Clojars - a Clojure community jar repository
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alex Osborne  
View profile  
 More options Nov 19 2009, 8:17 am
From: Alex Osborne <a...@meshy.org>
Date: Fri, 20 Nov 2009 00:17:17 +1100
Local: Thurs, Nov 19 2009 8:17 am
Subject: [ANN] Clojars - a Clojure community jar repository
I've been working on an easy to use open source community repository to
complement Leiningen in making building and dependency management easier
for Clojure projects.

http://clojars.org/

It's inspired by the fantastic Gemcutter.org website that the Ruby
community uses.  The repository is in the standard Maven repository
layout so in addition to Leiningen it will be usable with other tools
like Maven and Ivy as well.

The repository URL is

http://clojars.org/repo

but if you're using Leiningen you don't have to do anything special to
use it as it's already on the list of default repositories.

To push to the repository you don't need any special tools, just create
a pom.xml giving your project a group, name, version and a list of
dependencies and scp it to cloj...@clojars.org.  With Leiningen this
looks like:

lein pom
scp pom.xml myproject.jar cloj...@clojars.org:

But if even that's too long and complicated for you I wrote a Leiningen
plugin which makes it just:

lein push

There's a tutorial which goes through creating, building a simple
library with Leiningen and then pushing it to Clojars repository here:

http://wiki.github.com/ato/clojars-web/tutorial

But what about Maven Central?

It's a huge hassle to get things into Maven Central.  You generally have
to get manual approval from someone which can take a while and the
requirements are quite complex.  I wanted a much simpler and quicker way
of distributing jars that you can use for forks and personal projects as
well.

Can I upload Java libraries?

If a Java library is not already in the Maven Central repository and
you'd like to use it in a Clojure project, sure.  I'm targetting Clojure
but there's nothing stopping you from uploading jars for Java or JRuby
or Scala or anything else.  If you upload a library which you're not the
author/maintainer of, please give it a personal groupId like
'org.clojars.your-username' so that you don't squat on the project's
official groupId.

Please let me know if you encounter any problems and I'll do my best to
resolve them.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Baishampayan Ghose  
View profile  
 More options Nov 19 2009, 10:02 am
From: Baishampayan Ghose <b.gh...@ocricket.com>
Date: Thu, 19 Nov 2009 20:32:11 +0530
Local: Thurs, Nov 19 2009 10:02 am
Subject: Re: [ANN] Clojars - a Clojure community jar repository

Alex,

> I've been working on an easy to use open source community repository to
> complement Leiningen in making building and dependency management easier
> for Clojure projects.

Beautiful work, Alex. Really amazing.

Kudos to you and the awesome Clojure community.

Regards,
BG

--
Baishampayan Ghose <b.gh...@ocricket.com>
oCricket.com

  signature.asc
< 1K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Osborne  
View profile  
 More options Nov 19 2009, 2:56 pm
From: Alex Osborne <a...@meshy.org>
Date: Fri, 20 Nov 2009 06:56:43 +1100
Local: Thurs, Nov 19 2009 2:56 pm
Subject: Re: [ANN] Clojars - a Clojure community jar repository

Alex Osborne wrote:
> But if even that's too long and complicated for you I wrote a Leiningen
> plugin which makes it just:

> lein push

Looks like JSch library that the lein-clojars plugin uses doesn't work
with ssh-keygen's DSA keys and I overlooked adding passphrase support.
I'm working on fixing this but for now if you're having problems I
recommend pushing with:

lein pom
scp pom.xml yourlib.jar cloj...@clojars.org:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Laurent PETIT  
View profile  
 More options Nov 19 2009, 3:14 pm
From: Laurent PETIT <laurent.pe...@gmail.com>
Date: Thu, 19 Nov 2009 21:14:38 +0100
Local: Thurs, Nov 19 2009 3:14 pm
Subject: Re: [ANN] Clojars - a Clojure community jar repository

Hello,

Just an idea out of my head : could it be possible for the pom.xml to be
included in the jar, in the META-INF/ directory ?

This would even further simplify the process, wouldn't it ? :)

2009/11/19 Alex Osborne <a...@meshy.org>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Osborne  
View profile  
 More options Nov 19 2009, 3:28 pm
From: Alex Osborne <a...@meshy.org>
Date: Fri, 20 Nov 2009 07:28:41 +1100
Local: Thurs, Nov 19 2009 3:28 pm
Subject: Re: [ANN] Clojars - a Clojure community jar repository

Laurent PETIT wrote:
> Hello,

> Just an idea out of my head : could it be possible for the pom.xml to be
> included in the jar, in the META-INF/ directory ?

> This would even further simplify the process, wouldn't it ? :)

That's a great idea!  Can't believe it didn't occur to me. :-)

I looks like Maven does this, it puts two files in the jar:

META-INF/maven/$groupId/$artifactId/pom.xml
META-INF/maven/$groupId/$artifactId/pom.properties

pom.properties contains:

version=1.0.0
groupId=mygroup
artifactId=myjar

So it looks like you can use that to figure out what version a library
is just using the java properties system.  We should make Leiningen do
the same.

Alex


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Laurent PETIT  
View profile  
 More options Nov 20 2009, 12:31 pm
From: Laurent PETIT <laurent.pe...@gmail.com>
Date: Fri, 20 Nov 2009 18:31:59 +0100
Local: Fri, Nov 20 2009 12:31 pm
Subject: Re: [ANN] Clojars - a Clojure community jar repository
FYI: http://www.infoq.com/news/2009/11/clojars-leiningen-clojure

2009/11/19 Alex Osborne <a...@meshy.org>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Hagelberg  
View profile  
 More options Nov 20 2009, 1:41 pm
From: Phil Hagelberg <p...@hagelb.org>
Date: Fri, 20 Nov 2009 10:41:22 -0800
Local: Fri, Nov 20 2009 1:41 pm
Subject: Re: [ANN] Clojars - a Clojure community jar repository

Alex Osborne <a...@meshy.org> writes:
> I looks like Maven does this, it puts two files in the jar:

> META-INF/maven/$groupId/$artifactId/pom.xml
> META-INF/maven/$groupId/$artifactId/pom.properties

> So it looks like you can use that to figure out what version a library
> is just using the java properties system.  We should make Leiningen do
> the same.

This is a solid idea; I will target it for leiningen 1.0.

-Phil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »