Error formatting macro: pagetree: java.lang.NullPointerException

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Bring things up-to-date.
  1. Get Gradle: http://distrepo.codehausgradle.org/gradle/distributions/gradle-1.0.8-milestone-1-all.zip
  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: http://clojars.org/repo/clojuresque/clojuresque/1.34.0/clojuresque-1.34.0.jar
  5. Put the jar in $GRADLE_HOME/lib.
  6. Add the following line to $GRADLE_HOME/plugin.properties.

    clojure=clojuresque.ClojurePlugin
  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)

    gradleHomeRepo(repositories):
    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"

gradleHomeRepo(repositories)
repositories. {
    mavenCentral()
    clojarsRepo()
}

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

A Some more in depth guide was written by Wilson MacGyver: http://m.3wa.com/?p=464information can be found in the wiki.