This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 296
10
Clojure Linux Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 296
10
Clojure Linux Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic