Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 48 lines (45 sloc) 2.476 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"
14 ;; Dependencies are listed as [group-id/name version].
15 :dependencies [[org.clojure/clojure "1.1.0"]
16 [org.clojure/clojure-contrib "1.1.0"]
17 [log4j "1.2.15" :exclusions [javax.mail/mail
18 javax.jms/jms
19 com.sun.jdmk/jmxtools
20 com.sun.jmx/jmxri]]]
3c86ca5 @technomancy Implicitly clean lib/ before running deps. Fixes #61.
authored
21 ;; Before fetching dependencies, the contents of the lib/ directory
22 ;; will get deleted unless this is set to true.
23 :disable-implicit-clean false
915e61a @technomancy Add sample.project.clj showing all honored project keys.
authored
24 ;; Dev dependencies are intended for use only during
25 ;; development. Projects that depend on this project will not pull
26 ;; in its dev-dependencies, and they won't be included in the uberjar.
27 :dev-dependencies [[org.clojure/swank-clojure "1.2.1"]]
28 ;; These namespaces will be AOT-compiled. Needed for gen-class and
29 ;; other Java interop functionality. :namespaces is an alias for this.
30 :aot [org.example.sample.SampleClass]
31 ;; This namespace will be used as the "main" in the uberjar.
32 :main [org.example.sample]
33 ;; Emit warnings on all reflection calls.
34 :warn-on-reflection true
35 ;; Set this in order to only use the :repositories you list below.
36 :omit-default-repositories true
37 :repositories { "java.net" "http://download.java.net/maven/2"
38 "jboss" "http://repository.jboss.com/maven2/"}
39 ;; If you'd rather use a different directory structure, you can set these.
40 :source-path "src/main/clojure"
41 :library-path "target/dependency"
42 :test-path "src/test/clojure"
43 :resources-path "src/main/resources"
44 :native-path "src/native" ; where to look for native dependencies
45 :jar-dir "target/" ; where to place the project's jar file
46 ;; You can set JVM-level options here.
47 :jvm-opts "-Xmx1g")
Something went wrong with that request. Please try again.