Skip to content

Instantly share code, notes, and snippets.

@cemerick
Created July 15, 2011 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cemerick/225e07be131eb8635d84 to your computer and use it in GitHub Desktop.
Save cemerick/225e07be131eb8635d84 to your computer and use it in GitHub Desktop.
javac after AOT
(defproject oreilly.clojure/sample-lein-project "1.0.0"
:dependencies [[org.clojure/clojure "1.3.0-alpha6"]]
:aot :all
:warn-on-reflection true)
(require '(leiningen compile javac))
(add-hook #'leiningen.compile/compile
(fn [compile project & args]
(apply compile project args)
(leiningen.javac/javac (assoc project :java-source-path "src"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment