Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 83 lines (80 sloc) 4.528 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"
3e7f75e @technomancy Mention unquote in sample.project.clj
authored
8 ;; Beyond this point you may prepend a form with unquote, or ~, to eval it.
9
915e61a @technomancy Add sample.project.clj showing all honored project keys.
authored
10 ;; The descrption is used to allow searchability when uploaded to Clojars.
11 :description "A sample project"
12 ;; The URL is also metadata that Clojars uses.
13 :url "http://example.org/sample-clojure-project"
3b44549 @michalmarczyk Documented :mailing-list and :license in sample.project.clj.
michalmarczyk authored
14 ;; The mailing list of the project. If the project has multiple mailing
15 ;; lists, use the :mailing-lists key (bound to a seq of mailing list
16 ;; descriptions as below).
17 :mailing-list {:name "sample mailing list"
18 :archive "http://example.org/sample-mailing-list-archives"
c43ee75 @technomancy Trim long lines.
authored
19 :other-archives ["http://example.org/sample-list-archive2"
20 "http://example.org/sample-list-archive3"]
3b44549 @michalmarczyk Documented :mailing-list and :license in sample.project.clj.
michalmarczyk authored
21 :post "list@example.org"
22 :subscribe "list-subscribe@example.org"
23 :unsubscribe "list-unsubscribe@example.org"}
24 ;; The project's license. :distribution should be :repo or :manual;
25 ;; :repo means it is ok for public repositories to host this project's
26 ;; artifacts. :licence can be used in place of :license, and for projects
27 ;; which allow their users to choose among several licenses, :licenses
28 ;; and :licences keys are supported. NB. all licenses mentioned in
29 ;; project.clj under any of the supported keys will be put in pom.xml.
30 :license {:name "Eclipse Public License - v 1.0"
31 :url "http://www.eclipse.org/legal/epl-v10.html"
32 :distribution :repo
33 :comments "same as Clojure"}
915e61a @technomancy Add sample.project.clj showing all honored project keys.
authored
34 ;; Dependencies are listed as [group-id/name version].
35 :dependencies [[org.clojure/clojure "1.1.0"]
36 [org.clojure/clojure-contrib "1.1.0"]
37 [log4j "1.2.15" :exclusions [javax.mail/mail
38 javax.jms/jms
39 com.sun.jdmk/jmxtools
40 com.sun.jmx/jmxri]]]
3c86ca5 @technomancy Implicitly clean lib/ before running deps. Fixes #61.
authored
41 ;; Before fetching dependencies, the contents of the lib/ directory
42 ;; will get deleted unless this is set to true.
43 :disable-implicit-clean false
b5cb0cb @technomancy Don't load hooks unless they're specified in project.clj.
authored
44 ;; Load these namespaces on startup to pick up hooks from
45 ;; them. Hooks are generally included in plugins.
46 :hooks [leiningen.hooks.difftest]
47 ;; Set this to true to search the classpath for hooks. Will load all
48 ;; namespaces matching leiningen.hooks.*. Warning: this will cause
49 ;; Leiningen to start slowly, especially with many dependencies.
50 :implicit-hooks false
915e61a @technomancy Add sample.project.clj showing all honored project keys.
authored
51 ;; Dev dependencies are intended for use only during
52 ;; development. Projects that depend on this project will not pull
53 ;; in its dev-dependencies, and they won't be included in the uberjar.
54 :dev-dependencies [[org.clojure/swank-clojure "1.2.1"]]
55 ;; These namespaces will be AOT-compiled. Needed for gen-class and
56 ;; other Java interop functionality. :namespaces is an alias for this.
57 :aot [org.example.sample.SampleClass]
58 ;; This namespace will be used as the "main" in the uberjar.
59 :main [org.example.sample]
2247d67 @technomancy Rename :init-script to :repl-init-script; remove global-init-script.
authored
60 ;; This will get loaded automatically when you launch a repl.
61 :repl-init-script "src/main/clojure/init.clj"
915e61a @technomancy Add sample.project.clj showing all honored project keys.
authored
62 ;; Emit warnings on all reflection calls.
63 :warn-on-reflection true
64 ;; Set this in order to only use the :repositories you list below.
65 :omit-default-repositories true
66 :repositories { "java.net" "http://download.java.net/maven/2"
67 "jboss" "http://repository.jboss.com/maven2/"}
68 ;; If you'd rather use a different directory structure, you can set these.
69 :source-path "src/main/clojure"
70 :library-path "target/dependency"
71 :test-path "src/test/clojure"
72 :resources-path "src/main/resources"
73 :native-path "src/native" ; where to look for native dependencies
74 :jar-dir "target/" ; where to place the project's jar file
ae72f2d @michalmarczyk Documented :jar-name & :uberjar-name in sample.project.clj.
michalmarczyk authored
75 :jar-name "sample.jar" ; name of the jar produced by 'lein jar'
76 :uberjar-name "sample-standalone.jar" ; as above for uberjar
0e189a8 @technomancy Add :omit-source option to leave files in :source-path out of jars.
authored
77 ;; Leave the contents of :source-path out of jars (for AOT projects)
78 :omit-source true
0966229 @technomancy Clean up make-manifest. Fixes #46.
authored
79 ;; Set arbitrary key/value pairs for the jar's manifest.
80 :manifest {"Project-awesome-level" "super-great"}
915e61a @technomancy Add sample.project.clj showing all honored project keys.
authored
81 ;; You can set JVM-level options here.
3dc47c1 @technomancy Fix an entry in the sample.project.clj file.
authored
82 :jvm-opts ["-Xmx1g"])
Something went wrong with that request. Please try again.