Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 48 lines (46 sloc) 2.526 kb
915e61a @technomancy Add sample.project.clj showing all honored project keys.
authored
1 ;; This is an annotated example of the options that may be set in a
2 ;; project.clj file. It is a fairly contrived example in order to
3 ;; cover all options exhaustively; it shouldn't be considered a
4 ;; representative configuration.
5
6 ;; The project is named "sample", and its group-id is "org.example".
7 (defproject org.example/sample "1.0.0-SNAPSHOT" ; version "1.0.0-SNAPSHOT"
8 ;; The descrption is used to allow searchability when uploaded to Clojars.
9 :description "A sample project"
10 ;; The URL is also metadata that Clojars uses.
11 :url "http://example.org/sample-clojure-project"
12 ;; Dependencies are listed as [group-id/name version].
13 :dependencies [[org.clojure/clojure "1.1.0"]
14 [org.clojure/clojure-contrib "1.1.0"]
15 [log4j "1.2.15" :exclusions [javax.mail/mail
16 javax.jms/jms
17 com.sun.jdmk/jmxtools
18 com.sun.jmx/jmxri]]]
3c86ca5 @technomancy Implicitly clean lib/ before running deps. Fixes #61.
authored
19 ;; Before fetching dependencies, the contents of the lib/ directory
20 ;; will get deleted unless this is set to true.
21 :disable-implicit-clean false
915e61a @technomancy Add sample.project.clj showing all honored project keys.
authored
22 ;; Dev dependencies are intended for use only during
23 ;; development. Projects that depend on this project will not pull
24 ;; in its dev-dependencies, and they won't be included in the uberjar.
25 :dev-dependencies [[org.clojure/swank-clojure "1.2.1"]]
26 ;; These namespaces will be AOT-compiled. Needed for gen-class and
27 ;; other Java interop functionality. :namespaces is an alias for this.
28 :aot [org.example.sample.SampleClass]
29 ;; This namespace will be used as the "main" in the uberjar.
30 :main [org.example.sample]
31 ;; Emit warnings on all reflection calls.
32 :warn-on-reflection true
33 ;; Set this in order to only use the :repositories you list below.
34 :omit-default-repositories true
35 :repositories { "java.net" "http://download.java.net/maven/2"
36 "jboss" "http://repository.jboss.com/maven2/"}
37 ;; If you'd rather use a different directory structure, you can set these.
38 :source-path "src/main/clojure"
39 :library-path "target/dependency"
40 :test-path "src/test/clojure"
41 :resources-path "src/main/resources"
42 :native-path "src/native" ; where to look for native dependencies
43 :jar-dir "target/" ; where to place the project's jar file
ae72f2d @michalmarczyk Documented :jar-name & :uberjar-name in sample.project.clj.
michalmarczyk authored
44 :jar-name "sample.jar" ; name of the jar produced by 'lein jar'
45 :uberjar-name "sample-standalone.jar" ; as above for uberjar
915e61a @technomancy Add sample.project.clj showing all honored project keys.
authored
46 ;; You can set JVM-level options here.
47 :jvm-opts "-Xmx1g")
Something went wrong with that request. Please try again.