Error formatting macro: pagetree: java.lang.NullPointerException
Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current  |   View Page History
  1. Get Gradle: http://dist.codehaus.org/gradle/gradle-0.8-all.zip
  2. Unzip the zip to some directory.
  3. cPoint the GRADLE_HOME env var to /some/directory/gradle-0.8.
  4. Download clojuresque: http://clojars.org/repo/clojuresque/clojuresque/1.3.0/clojuresque-1.3.0.jar
  5. Put the jar in $GRADLE_HOME/lib.
  6. Add the following line to $GRADLE_HOME/plugin.properties.
    clojure=clojuresque.ClojurePlugin
  7. Tell gradle you want to use clojuresque in the buildscript.
    usePlugin(clojure)
  8. Tell gradle to add the $GRADLE_HOME/lib directory to the repositories. (Required for the compileClojure step)
    gradleHomeRepo(repositories)
  9. Put your clojure sources under src/main/clojure.
  10. A minimal buildscript is:
usePlugin(clojure)

gradleHomeRepo(repositories)
repositories.mavenCentral()

dependencies {
    compile 'org.clojure:clojure:1.1.0'
}

A more in depth guide was written by Wilson MacGyver: http://m.3wa.com/?p=464

Labels: