Skip to content

Commit

Permalink
Release 1.5.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Apr 13, 2011
1 parent e4e475a commit d055f28
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 33 deletions.
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Leiningen NEWS -- history of user-visible changes

= 1.5.1 / ???
= 1.5.1 / 2011-04-12

* Improve rlwrap quote support. (Ambrose Bonnaire-Sergeant)

Expand Down
50 changes: 26 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ advantage of this, you should put it on your <tt>$PATH</tt>.

Place a <tt>project.clj</tt> file in the project root like this:

(defproject leiningen "0.5.0-SNAPSHOT"
(defproject myproject "0.5.0-SNAPSHOT"
:description "A build tool designed to not set your hair on fire."
:url "http://github.com/technomancy/leiningen"
:dependencies [[org.clojure/clojure "1.1.0"]
Expand Down Expand Up @@ -122,8 +122,8 @@ See the plugin task's help for more information.

**Q:** But Maven is terrifying!
**A:** That's not a question. Anyway, Leiningen only uses the dependency
resolution parts of Maven, which are quite tame. For the actual
task execution cycles it uses Ant under the covers via Lancet.
resolution parts of Maven, which are quite tame. For some other
build-related functionality it uses Ant under the covers via Lancet.

**Q:** But Ant is terrifying!
**A:** That's [true](http://www.defmacro.org/ramblings/lisp.html). Ant is
Expand Down Expand Up @@ -165,7 +165,7 @@ See the plugin task's help for more information.
visible in the main project without having to go through the whole
install/switch-projects/deps/restart-swank cycle. Note that this is
not a replacement for listing the project in :dependencies; it
simply supplements that.
simply supplements that for tighter change cycles.

**Q:** Is it possible to exclude indirect dependencies?
**A:** Yes. Some libraries, such as log4j, depend on projects that are
Expand All @@ -187,11 +187,13 @@ See the plugin task's help for more information.
upon it.

**Q:** What can be done to speed up launch?
**A:** The main delay involved in Leiningen comes from starting the JVM.
Launching "lein interactive" will give you an interactive session so
you can run many tasks against the same process instead of launching
a new one every time. Depending on your editor you may also be able
to take advantage of its Clojure integration.
**A:** The main delay involved in Leiningen comes from starting the
JVM. Launching "lein interactive" will give you an interactive
session so you can run many tasks against the same process instead
of launching a new one every time. Depending on your editor you may
also be able to take advantage of its Clojure integration. (See
[swank-clojure](http://github.com/technomancy/swank-clojure) or
[VimClojure](https://bitbucket.org/kotarak/vimclojure), for example.)

**Q:** Still too slow; what else can make startup faster?
**A:** There are two flavours of the JVM, client and server. The
Expand All @@ -200,15 +202,14 @@ See the plugin task's help for more information.
only works on 32-bit JVM installations. If you are on a 64-bit
machine you can still use a client JVM if you install 32-bit
packages; on Ubuntu try ia32-sun-java6-bin. Once you've installed
it, set the <tt>JAVA_CMD</tt> environment variable to
<tt>/usr/lib/jvm/ia32-java-6-sun/bin/java</tt>.
it, run <tt>sudo update-java-alternatives -s ia32-java-6-sun</tt>.

**Q:** I don't have access to stdin inside my project.
**A:** There's a bug in the Ant library that Leiningen uses to spawn
new processes that blocks access to console input. This means that
functions like <tt>read-line</tt> will not work as expected in most
contexts, though the <tt>repl</tt> task necessarily includes a
workaround. You can also use <tt>java -cp `lein classpath`
workaround. You can also use <tt>java -cp \`lein classpath\`
my.main.namespace</tt> to launch a process with the correct
classpath that still has access to stdin.

Expand All @@ -223,17 +224,18 @@ HACKING.md for more details on how Leiningen's codebase is structured.
## Building

You don't need to "build" Leiningen per se, but when you're using a
checkout you will need to get its dependencies in place. If you have a
copy of an older Leiningen version around (at least 1.1.0, installed
as lein-stable, for example), then you can run "lein-stable deps" in
your checkout. If Leiningen's dependencies change it will be necessary
to remove the lib/ directory entirely before running "lein deps"
again. (This is not necessary for most projects, but Leiningen has
unique bootstrapping issues when working on itself.)

Alternatively a <tt>lein self-install</tt> will usually get you what
you need. However, this will occasionally fail for very new SNAPSHOT
versions since the standalone jar will not have been uploaded yet.
checkout you will need to get its dependencies in place. In most cases
a <tt>lein self-install</tt> will usually get you what you
need. However, this will occasionally fail for very new SNAPSHOT
versions since the standalone jar will not have been uploaded yet.

Alternatively if you have a copy of an older Leiningen version around
(at least 1.1.0, installed as lein-stable, for example), then you can
run "lein-stable deps" in your checkout. If Leiningen's dependencies
change it will be necessary to remove the lib/ directory entirely
before running "lein deps" again. (This is not necessary for most
projects, but Leiningen has unique bootstrapping issues when working
on itself.)

You can also use Maven, just for variety's sake:

Expand All @@ -242,7 +244,7 @@ You can also use Maven, just for variety's sake:

Symlink bin/lein from your checkout into a location on the $PATH. The
script can figure out when it's being called from inside a checkout
and use the checkout rather than the self-install uberjar.
and use the checkout rather than the self-install uberjar if necessary.

## License

Expand Down
2 changes: 1 addition & 1 deletion bin/lein
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

LEIN_VERSION="1.5.1-SNAPSHOT"
LEIN_VERSION="1.5.1"
export LEIN_VERSION

case $LEIN_VERSION in
Expand Down
2 changes: 1 addition & 1 deletion bin/lein.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off

set LEIN_VERSION=1.5.1-SNAPSHOT
set LEIN_VERSION=1.5.1

setLocal EnableExtensions EnableDelayedExpansion

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>leiningen</groupId>
<artifactId>leiningen</artifactId>
<version>1.5.1-SNAPSHOT</version>
<version>1.5.1</version>
<name>leiningen</name>
<description>A build tool designed not to set your hair on fire.</description>
<url>https://github.com/technomancy/leiningen</url>
Expand All @@ -13,7 +13,7 @@
<scm>
<connection>scm:git:git://github.com/technomancy/leiningen.git</connection>
<developerConnection>scm:git:ssh://git@github.com/technomancy/leiningen.git</developerConnection>
<tag>738703094519b5b3343fa944cbf7de94dd37e999</tag>
<tag>fa0a737e0797e32a4d84723aa61140f08e9cb8e7</tag>
<url>https://github.com/technomancy/leiningen</url>
</scm>
<build>
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
;; defproject form. It can have other code in it as well, including
;; loading other task definitions.

(defproject leiningen "1.5.1-SNAPSHOT"
(defproject leiningen "1.5.1"
:description "A build tool designed not to set your hair on fire."
:url "https://github.com/technomancy/leiningen"
:license {:name "Eclipse Public License"}
Expand Down
4 changes: 2 additions & 2 deletions src/leiningen/interactive.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns leiningen.interactive
"Enter interactive shell for calling tasks without relaunching JVM."
"Enter interactive task shell."
(:require [clojure.string :as string])
(:use [leiningen.core :only [apply-task exit]]
[leiningen.test :only [*exit-after-tests*]]
Expand Down Expand Up @@ -59,7 +59,7 @@
(recur (.readLine *in*))))))

(defn interactive
"Enter an interactive shell for calling tasks without relaunching JVM."
"Enter an interactive task shell."
[project]
(let [[port host] (repl-socket-on project)]
(println welcome)
Expand Down
2 changes: 1 addition & 1 deletion todo.org
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ See also https://github.com/technomancy/leiningen/issues
- merge lucene-based lein-search plugin
* For 1.5.1
** TODO
- [ ] Move ns docstrings to :help-summary to allow AOT given CLJ-130.
- [x] Move ns docstrings to :help-summary to allow AOT given CLJ-130.
- [x] Put :eval-in-lein deps in lib/dev for leiningen process access.
- [x] Revert back to :warn on checksum failure.
- [x] Fix LEIN_ROOT warning in bin/lein.
Expand Down

0 comments on commit d055f28

Please sign in to comment.