Compile Scala source from Leiningen.
Add [lein-scalac "0.1.0"] to :plugins project.clj. (Or
:dev-dependencies on Leiningen versions earlier than 1.7.0)
Set :scala-source-path in project.clj, usually to "src/scala", and
place your .scala source files in there.
Run lein scalac to compile them to .class files.
If you'd like scalac to run before every compile invocation you
can add leiningen.hooks.scalac to :hooks in project.clj.
Copyright © 2012 Phil Hagelberg and Scott Clasen
Distributed under the Eclipse Public License, the same as Clojure.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |