Getting Started with Gradle

History Key

  • New content
  • Removed content

Recent Versions

Choose two versions to compare, or click the link to view it.

  1. 2. about 1 year by stuart.halloway
  2. 1. about 2 years by meikelbrandmeyer
 
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.