Permalink
Browse files

Rework some of sample.project.clj.

  • Loading branch information...
1 parent 65a2dc4 commit 19b44647cc4f7efef087c57707280029e30ad5c1 @technomancy committed Dec 25, 2010
Showing with 15 additions and 15 deletions.
  1. +15 −15 sample.project.clj
View
@@ -1,15 +1,15 @@
;; This is an annotated example of the options that may be set in a
;; project.clj file. It is a fairly contrived example in order to
;; cover all options exhaustively; it shouldn't be considered a
-;; representative configuration.
+;; representative configuration. For a more detailed explanation of
+;; some of the terms run "lein help tutorial".
;; The project is named "sample", and its group-id is "org.example".
(defproject org.example/sample "1.0.0-SNAPSHOT" ; version "1.0.0-SNAPSHOT"
;; Beyond this point you may prepend a form with unquote, or ~, to eval it.
- ;; The descrption is used to allow searchability when uploaded to Clojars.
+ ;; The descrption text is searchable from repositories like Clojars.
:description "A sample project"
- ;; The URL is also metadata that Clojars uses.
:url "http://example.org/sample-clojure-project"
;; The mailing list of the project. If the project has multiple mailing
;; lists, use the :mailing-lists key (bound to a seq of mailing list
@@ -23,10 +23,7 @@
:unsubscribe "list-unsubscribe@example.org"}
;; The project's license. :distribution should be :repo or :manual;
;; :repo means it is ok for public repositories to host this project's
- ;; artifacts. :licence can be used in place of :license, and for projects
- ;; which allow their users to choose among several licenses, :licenses
- ;; and :licences keys are supported. NB. all licenses mentioned in
- ;; project.clj under any of the supported keys will be put in pom.xml.
+ ;; artifacts. A seq of :licenses is also supported.
:license {:name "Eclipse Public License - v 1.0"
:url "http://www.eclipse.org/legal/epl-v10.html"
:distribution :repo
@@ -46,10 +43,10 @@
:disable-implicit-clean false
;; Delete .class files that do not have a correspoinding package in
;; the src/ directory. Workaround for Clojure bug CLJ-322. Causes problems
- ;; with protocols in upstream libraries.
+ ;; with protocols in upstream libraries; false by default.
:clean-non-project-classes true
- ;; Load these namespaces on startup to pick up hooks from
- ;; them. Hooks are generally included in plugins.
+ ;; Load these namespaces on startup to pick up hooks from them. Hooks
+ ;; generally come from plugins, but may be included in your project source.
:hooks [leiningen.hooks.difftest]
;; Predicates to determine whether to run a test or not. See tutorial.
:test-selectors {:default (fn [t] (not (or (:integration v) (:regression v))))
@@ -95,12 +92,15 @@
:library-path "target/dependency"
:test-path "src/test/clojure"
:resources-path "src/main/resource" ; non-code files included in classpath/jar
- :test-resources-path "src/test/resource" ; added to classpath but not in jar
- :native-path "src/native" ; where to look for native dependencies
- :jar-dir "target/" ; where to place the project's jar file
- :jar-name "sample.jar" ; name of the jar produced by 'lein jar'
+ :dev-resources-path "src/test/resource" ; added to dev classpath but not jar
+ :native-path "src/native" ; where to look for native dependencies
+ :target-dir "target/" ; where to place the project's jar file
+ :jar-name "sample.jar" ; name of the jar produced by 'lein jar'
:uberjar-name "sample-standalone.jar" ; as above for uberjar
- :java-source-path "src/main/java" ; location of Java source.
+ ;; Options to pass to java compiler for java source
+ ;; See http://ant.apache.org/manual/Tasks/javac.html
+ :javac-options {:destdir "classes/"}
+ :java-source-path "src/main/java" ; location of Java source
;; Leave the contents of :source-path out of jars (for AOT projects)
:omit-source true
;; Files with names matching any of these patterns will be excluded from jars

0 comments on commit 19b4464

Please sign in to comment.