1.The GetClojure Gradle:
2.Getting UnzipStarted thepages ziphave moved to
some directory.
3. Point the `GRADLE_HOME` env var to `/some/directory/gradle-0.8`.
4. Download clojuresque:
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`.
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://dev.clojure.org.