Bump version to 1.0.0-SNAPSHOT
This commit is contained in:
parent
f97228f1a7
commit
70a6d19546
6 changed files with 21 additions and 7 deletions
16
README.md
16
README.md
|
@ -26,7 +26,9 @@ rather than copying and pasting among each of your projects.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Copy bin/lein to a location on your $PATH and run: $ lein self-install
|
1. Download the script: http://github.com/technomancy/leiningen/raw/master/bin/lein
|
||||||
|
2. Place it on your path and chmod it to be executable.
|
||||||
|
3. Run: <tt>lein self-install</tt>
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@ -50,8 +52,6 @@ Copy bin/lein to a location on your $PATH and run: $ lein self-install
|
||||||
|
|
||||||
$ lein help [TASK] # show a list of tasks or help for a given TASK
|
$ lein help [TASK] # show a list of tasks or help for a given TASK
|
||||||
|
|
||||||
TODO: new, deploy
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
Place a project.clj file in the project root that looks something like this:
|
Place a project.clj file in the project root that looks something like this:
|
||||||
|
@ -111,12 +111,20 @@ necessary:
|
||||||
|
|
||||||
0. Place bin/lein on your $PATH somewhere.
|
0. Place bin/lein on your $PATH somewhere.
|
||||||
1. Do a self-install of leiningen (from outside the checkout tree).
|
1. Do a self-install of leiningen (from outside the checkout tree).
|
||||||
2. Place ~/.leiningen.jar in lib.
|
2. Place ~/.m2/repository/leiningen/leiningen/$VERSION/leiningen-$VERSION.jar in lib.
|
||||||
3. Invoke "lein compile" followed by "lein deps".
|
3. Invoke "lein compile" followed by "lein deps".
|
||||||
4. Remove .leiningen.jar from lib.
|
4. Remove .leiningen.jar from lib.
|
||||||
5. Invoke "lein uberjar", and place the jar in ~/.leiningen.jar for
|
5. Invoke "lein uberjar", and place the jar in ~/.leiningen.jar for
|
||||||
future use.
|
future use.
|
||||||
|
|
||||||
|
The [mailing list](http://groups.google.com/group/clojure) and the
|
||||||
|
#leiningen or #clojure channels on Freenode are the best places to
|
||||||
|
bring up questions or suggestions. Contributions are preferred as
|
||||||
|
either Github pull requests or using "git format-patch" as described
|
||||||
|
at http://clojure.org/patches.
|
||||||
|
|
||||||
|
Please use standard indentation with no tabs or trailing whitespace.
|
||||||
|
|
||||||
Leiningen is extensible, you can define new tasks in plugins. Add your
|
Leiningen is extensible, you can define new tasks in plugins. Add your
|
||||||
plugin as a dev-dependency of your project, and you'll be able to call
|
plugin as a dev-dependency of your project, and you'll be able to call
|
||||||
"lein $YOUR_COMMAND". See the lein-swank directory for an example of a
|
"lein $YOUR_COMMAND". See the lein-swank directory for an example of a
|
||||||
|
|
2
bin/lein
2
bin/lein
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# TODO: this gives us a trailing colon
|
# TODO: this gives us a trailing colon
|
||||||
VERSION=0.5.0
|
VERSION="1.0.0-SNAPSHOT"
|
||||||
LIBS="$(find -H lib/ -mindepth 2> /dev/null 1 -maxdepth 1 -print0 | tr \\0 \:)"
|
LIBS="$(find -H lib/ -mindepth 2> /dev/null 1 -maxdepth 1 -print0 | tr \\0 \:)"
|
||||||
CLASSPATH="src/:classes/:$LIBS"
|
CLASSPATH="src/:classes/:$LIBS"
|
||||||
LEIN_JAR=$HOME/.m2/repository/leiningen/leiningen/$VERSION/leiningen-$VERSION.jar
|
LEIN_JAR=$HOME/.m2/repository/leiningen/leiningen/$VERSION/leiningen-$VERSION.jar
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
;; defproject form. It can have other code in it as well, including
|
;; defproject form. It can have other code in it as well, including
|
||||||
;; loading other task definitions.
|
;; loading other task definitions.
|
||||||
|
|
||||||
(defproject leiningen "0.5.0"
|
(defproject leiningen "1.0.0-SNAPSHOT"
|
||||||
:description "A build tool designed not to set your hair on fire."
|
:description "A build tool designed not to set your hair on fire."
|
||||||
:main leiningen.core
|
:main leiningen.core
|
||||||
:dependencies [[org.clojure/clojure "1.1.0-alpha-SNAPSHOT"]
|
:dependencies [[org.clojure/clojure "1.1.0-alpha-SNAPSHOT"]
|
||||||
|
@ -11,4 +11,5 @@
|
||||||
[org.apache.maven/maven-ant-tasks "2.0.10"]]
|
[org.apache.maven/maven-ant-tasks "2.0.10"]]
|
||||||
;; Wait till this makes it to a public repo.
|
;; Wait till this makes it to a public repo.
|
||||||
;; :dev-dependencies [[org.clojure/swank-clojure "1.0"]]
|
;; :dev-dependencies [[org.clojure/swank-clojure "1.0"]]
|
||||||
|
:dev-dependencies [[lein-clojars "0.5.0-SNAPSHOT"]]
|
||||||
)
|
)
|
||||||
|
|
|
@ -13,4 +13,5 @@ unless a list of :namespaces is provided in project.clj."
|
||||||
(find-namespaces-in-dir (file (:root project) "src")))]
|
(find-namespaces-in-dir (file (:root project) "src")))]
|
||||||
(println "Compiling" n)
|
(println "Compiling" n)
|
||||||
;; TODO: check to see if bytecode is older than source
|
;; TODO: check to see if bytecode is older than source
|
||||||
|
(require n)
|
||||||
(clojure.core/compile n)))
|
(clojure.core/compile n)))
|
||||||
|
|
|
@ -15,10 +15,11 @@
|
||||||
the source .clj files. If project.clj contains a :main symbol, it will be used
|
the source .clj files. If project.clj contains a :main symbol, it will be used
|
||||||
as the main-class for an executable jar."
|
as the main-class for an executable jar."
|
||||||
[project & args]
|
[project & args]
|
||||||
|
;; TODO: clean?
|
||||||
(compile/compile project)
|
(compile/compile project)
|
||||||
(let [jar-file (str (:root project) "/" (:name project) ".jar")
|
(let [jar-file (str (:root project) "/" (:name project) ".jar")
|
||||||
filesets [{:dir *compile-path*}
|
filesets [{:dir *compile-path*}
|
||||||
{:dir (str (:root project) "/src")}
|
{:dir (str (:root project) "/src")} ; TODO: pom too
|
||||||
{:file (str (:root project) "/project.clj")}]]
|
{:file (str (:root project) "/project.clj")}]]
|
||||||
;; TODO: support slim, etc
|
;; TODO: support slim, etc
|
||||||
(apply lancet/jar {:jarfile jar-file
|
(apply lancet/jar {:jarfile jar-file
|
||||||
|
|
|
@ -47,6 +47,9 @@
|
||||||
(.setProject lancet/ant-project)
|
(.setProject lancet/ant-project)
|
||||||
(.setMavenProject (MavenProject. (make-model project)))))
|
(.setMavenProject (MavenProject. (make-model project)))))
|
||||||
|
|
||||||
|
;; TODO: generated poms should use a different filename so we don't
|
||||||
|
;; have to worry about overwriting existing ones?
|
||||||
|
|
||||||
(defn pom [project & [args]]
|
(defn pom [project & [args]]
|
||||||
(let [pom-file (file (:root project) "pom.xml")]
|
(let [pom-file (file (:root project) "pom.xml")]
|
||||||
(with-open [w (writer pom-file)]
|
(with-open [w (writer pom-file)]
|
||||||
|
|
Loading…
Reference in a new issue