Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It's been a while since I posted this question and I thought that I would stick up what I've found since for anyone who needs this question answered.</p> <p>I now use <a href="http://github.com/technomancy/leiningen" rel="nofollow noreferrer">Leiningen</a> to manage my projects though I have started playing around with <a href="http://github.com/liebke/cljr" rel="nofollow noreferrer">cljr</a> which is a repl and package manager that complements it. Either of these make it much simpler to generate a runnable jar file.</p> <p>Taking Leiningen as an example set it up using the instructions on the site and then call <code>lein new</code> in your workspace. This will create a folder to house your projects as well as a sub-folders for your source and tests a readme file and a project.clj file.</p> <p>Edit the project.clj with the dependencies that you will be using. Dev-dependencies are dependencies which you need purely for development such as swank-clojure shown in the example below.</p> <pre><code>(defproject myproject "0.0.1-SNAPSHOT" :description "My Personal Project." :url "http://example.com/my-project" :dependencies [[org.clojure/clojure "1.1.0"] [org.clojure/clojure-contrib "1.1.0"] [**other dependencies**]] :dev-dependencies [[swank-clojure "1.2.1"]] :main [org.myproject.core]) </code></pre> <p>I find swank-clojure useful as you can then type <code>lein swank</code> to start a swank instance which you can connect to via emacs.</p> <p>:main defines what namespace contains the -main function.</p> <p>Calling <code>lein uberjar</code> will create a standalone jar which will then run.</p> <p>Hopefully that helps anyone who had my problem!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload