Error formatting macro: pagetree: java.lang.NullPointerException

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Bring things up-to-date.
  1. Get Gradle:
  2. Unzip the zip to some directory.
  3. cPoint Point the GRADLE_HOME env var to /some/directory/gradle-1.0-milestone-1.8.
  4. Download clojuresque:
  5. Put the jar in $GRADLE_HOME/lib.
  6. Add the following line to $GRADLE_HOME/

  7. /plugins.
  8. Tell gradle you want to use clojuresque in the buildscript.

    usePlugin(clojure)Tell gradle to add the $GRADLE_HOME/lib directory to the repositories. (Required for the compileClojure step)

    Code Block
    apply plugin: "clojure"
  9. Add clojars to your repositories:
    Code Block
    repositories { clojarsRepo() }
  10. Put your clojure sources under src/main/clojure.
  11. Run gradle build.
  12. Find the jar with your project under build/lib/<project>-<version>.jar.

A minimal buildscript is:

No Formatcode
usePlugin(clojure)apply plugin: "clojure"

repositories. {

dependencies {
    compile 'org.clojure:clojure:1.12.0'

A Some more in depth guide was written by Wilson MacGyver: can be found in the wiki.