File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Clojure and the fly likes is there a way to automatically keep my clojure installation up to date? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Clojure
Bookmark "is there a way to automatically keep my clojure installation up to date?" Watch "is there a way to automatically keep my clojure installation up to date?" New topic
Author

is there a way to automatically keep my clojure installation up to date?

Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

When I have time to work on Clojure, I always find myself downloading the most recent version. Is there a way to automatically keep my install up to date with the latest release?
Sean Corfield
Ranch Hand

Joined: Feb 09, 2011
Posts: 267
    
    5

If you're using Leiningen, you can tell it your dependency is on 1.3.0-master-SNAPSHOT if you want to live right on the edge and then "lein deps" will ensure it's up-to-date.

How are you experimenting with Clojure right now? (I mean, what development tools are you using)
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

Sean Corfield wrote:
How are you experimenting with Clojure right now? (I mean, what development tools are you using)


My experiments have been limited to the REPL. I attempted to use the IntelliJ plugin for Clojure about 9 months ago and it didn't work out ( it hosed up intelliJ ). From what I read, that plugin is much better now.

At the time, I also attempted to work with the clojure koans, but got bogged down with the installation. It sounds like those are more advanced now too. I'll attempt that again.
Sean Corfield
Ranch Hand

Joined: Feb 09, 2011
Posts: 267
    
    5

As an easy way to get started with Clojure, I can highly recommend Leiningen (at least for Mac / Linux - I'm not sure how good the experience is on Windows). You download one simple shell script (lein), run "lein new myprojectname" to create a folder (myprojectname) that is setup for Clojure, cd into that folder and type "lein deps" and everything is automatically downloaded (to your local Maven repository) and installed. "lein repl" starts a REPL with the libraries on your classpath. You can edit project.clj to add / update your dependencies (and run "lein deps" again) any time you want.

Yes, the IDE plugins have all improved lately. I'm only familiar with Eclipse / CounterClockWise which is getting really solid these days.
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

Thanks! I downloaded Leiningen and it works great.

The steps that got it to work on Windows are as follows:
  • Download leiningen-1.5.xxxx-win.zip and extract.
  • In command prompt, navigate to lein directory.
  • Run "lein self-install"
  • Run "lein new myProject"
  • self-install downloads leiningen-1.5.xxx-standalone.jar. This jar must be added to windows classpath.
  • add directory containing lein.bat to windows path.
  • cd to myProject directory and run "lein deps"





  •  
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: is there a way to automatically keep my clojure installation up to date?