Commit graph

2530 commits

Author SHA1 Message Date
Phil Hagelberg
6cb0170e69 Merge pull request #759 from hugoduncan/feature/allow-gpg-executable-configuration
Allow override of gpg executable using LEIN_GPG
2012-08-30 07:13:31 -07:00
Hugo Duncan
0457aabdb2 Allow override of gpg executable using LEIN_GPG
On some platforms, eg. Mac, it may be more desirable to use an executable other
than 'gpg' for signing and encryption, and it may not be possible to symlink to
'gpg'. This allows the gpg executable used in lein to be specified via LEIN_GPG.

You can use ~/.lein/leinrc or ~/.leinrc to set LEIN_GPG by adding
'export LEIN_GPG=your-gpg' to either of those files.
2012-08-30 09:36:09 -04:00
Phil Hagelberg
22b427aca1 Fix some of the tests. 2012-08-29 19:50:53 -07:00
Phil Hagelberg
a2d2b92d01 Don't insert :deploy-repositories/:plugin-repositories keys without vals.
This implementation is awful awful awful; must revisit.
2012-08-29 19:50:53 -07:00
Michael Klishin
e15278e0c1 Merge pull request #758 from rwfowler/propogate-file.encoding
Propogates the file.encoding system property to subprocesses
2012-08-29 15:48:47 -07:00
Ryan Fowler
c3bd307da4 Propogates the file.encoding system property to subprocesses
On a coworker's Mac, the default file encoding was apparently
MacRoman. The -Dfile.encoding=UTF-8 that's in the lein shell script
wasn't being propogated to subprocesses which caused rage and the
replacement character.
2012-08-29 17:40:40 -05:00
Justin Balthrop
a92fa36028 add DRIP_INIT so lein will be faster when running with decaf 2012-08-29 15:36:06 -07:00
Justin Balthrop
30a6643fcd Fix trampoline file to work with Drip
Read the TRAMPOLINE_FILE environment variable instead of putting it
in a system property. Drip looks up pre-spun JVMs using a hash of the
command-line arguments, so putting the trampoline file in a system
property causes it to start a new spare JVM for every lein invocation.
2012-08-29 15:36:01 -07:00
Michael Klishin
04c784c1aa Clarify leiningen-core installation instructions
Currently `leiningen-core` needs to be installed using lein1.

Resolves #757.
2012-08-30 00:28:37 +04:00
Phil Hagelberg
e9e11309aa Don't suppress stack traces unless it was an explicit exit thrown. 2012-08-29 09:42:14 -07:00
Phil Hagelberg
a29bc0c248 Echo $LEIN_JAR path in self-install. Fixes #753. 2012-08-28 12:01:37 -07:00
Phil Hagelberg
b2a50ffe97 Clarify usage of .lein-classpath during plugin development. Fixes #750. 2012-08-28 11:22:11 -07:00
Phil Hagelberg
b5ea5a0f09 Normalize format of :deploy-repositories and :plugin-repositories too.
Fixes #752.
2012-08-28 09:15:21 -07:00
Colin Jones
1843348d12 Bump reply version for a few issues
Duplicate printing on reader errors, moving to the official & now
up-to-date jline, and explicitly using System/out & System/in.
2012-08-27 20:04:10 -05:00
Michael Klishin
2b4b60a797 Merge pull request #749 from Adirelle/patch-1
Have lein.bat use local .lein-classpath.
2012-08-26 11:59:49 -07:00
Adirelle
7c927202b9 Have lein.bat use local .lein-classpath.
This should fix issue #718.
2012-08-26 21:40:21 +03:00
Phil Hagelberg
c08d4aa2dd Stupid bash typo. 2012-08-25 18:55:02 -07:00
Phil Hagelberg
287150a0e9 News updates 2012-08-25 18:43:27 -07:00
Phil Hagelberg
f633c90164 Back to 2.0.0-SNAPSHOT. Next release will be RC1, for reals. 2012-08-25 18:41:32 -07:00
Phil Hagelberg
3b1924e538 Release 2.0.0-preview10. 2012-08-25 16:49:21 -07:00
Phil Hagelberg
3de5208a8e Load plugins based on default project so :repositories are available.
Fixes #747.
2012-08-25 16:44:46 -07:00
Phil Hagelberg
3106e21459 Fix warn-user-repos for new :repositories format. 2012-08-25 16:39:25 -07:00
Phil Hagelberg
59303f8101 Consistently explain how to set insecure HTTP_CLIENT in bin/lein. 2012-08-25 14:46:03 -07:00
Phil Hagelberg
de9560332c Make nrepl listen on 127.0.0.1 by default. Fixes #748. 2012-08-25 14:08:52 -07:00
Phil Hagelberg
e29418dc58 Bump back to 2.0.0-SNAPSHOT. 2012-08-24 17:26:00 -07:00
Phil Hagelberg
88f00af830 Release 2.0.0-preview9. 2012-08-24 17:02:17 -07:00
Phil Hagelberg
231daa65e2 news updates. 2012-08-24 16:55:06 -07:00
Phil Hagelberg
4a33371e76 Merge pull request #746 from llasram/provided-profile
Document :provided profile
2012-08-24 12:17:17 -07:00
Marshall T. Vandegrift
be6f571104 Document :provided profile. 2012-08-24 08:34:22 -04:00
Marshall T. Vandegrift
da5e9721d7 Include :dev profile before :provided, giving :dev priority. 2012-08-24 07:46:13 -04:00
Phil Hagelberg
b4cc744efd Merge remote branch 'llasram/provided-profile' 2012-08-23 14:49:32 -07:00
Phil Hagelberg
037cc96941 Perform de-duplication on :repositories. 2012-08-23 14:35:25 -07:00
Phil Hagelberg
b5a193d331 Switch :repositories to vector format to preserve ordering.
See http://librelist.com/browser/leiningen/2012/8/17/ordering-issues-with-repositories/
for motivation.
2012-08-23 14:34:58 -07:00
Justin Balthrop
72969e7e55 forgot to switch plugin-vars calls to pass keywords 2012-08-23 13:31:30 -07:00
Marshall T. Vandegrift
6ded97f3d3 Include :provided profile when building JAR. 2012-08-23 16:31:21 -04:00
Justin Balthrop
ff5524bdf1 support disabling autoload of plugin hooks and middleware 2012-08-23 13:29:37 -07:00
Justin Balthrop
09e5f60684 remove unnecessary is inside of are expression 2012-08-23 13:17:20 -07:00
Justin Balthrop
99a7bfcea0 Fix #742, explicit middleware load error
Don't call set-profiles from leiningen.core.project/read because it
calls load-middleware, and we want to wait to do that for the first time
in init-project. To solve this, I added init-profiles which is called by
both read and set-profiles.

Also clean up init-project and move code duplicated in set-profiles into
activate-middleware. We now always load hooks and certificates when
activating middleware, and load-certificates is actually called twice in
the course of init-project. To make sure load-certificates is
idempotent, we memoized leiningen.core.ssl/register-scheme.
2012-08-23 12:43:14 -07:00
Justin Balthrop
d7488b2bf9 add breaking test for #742 2012-08-23 12:39:44 -07:00
Marshall T. Vandegrift
f416ad9481 Implement Maven "provided" scope with :provided profile. 2012-08-23 14:33:42 -04:00
Justin Balthrop
cc7d759c10 use (get project key) to be consistent 2012-08-23 11:31:00 -07:00
Phil Hagelberg
d4acd839fd Stop using project metadata for storing trampoline forms. 2012-08-23 10:56:59 -07:00
Justin Balthrop
69d3f80150 documentation for automatic plugin hooks and middleware 2012-08-22 15:35:21 -07:00
Justin Balthrop
aff5243920 unify :hooks and :middleware format in project.clj
Both now expect a full var, though hooks will fall back to activate in
the provided namespace for compatibility.

Also, use the following convention for plugin auto hooks and middleware:
- Assuming your plugin is called lein-config
- Put hooks you want auto-loaded in lein-config.plugin/hooks
- Put middleware you want auto-applied in lein-config.plugin/middleware
2012-08-22 13:17:27 -07:00
Phil Hagelberg
1ef883a408 set-profiles it is. and it's a high-level operation. 2012-08-22 12:08:02 -07:00
Phil Hagelberg
2348b6b619 Fix with-profile task to work from the base project rather than being additive. 2012-08-22 12:04:17 -07:00
Phil Hagelberg
f6e5959e7c Fix with-profiles to work outside project dir. 2012-08-22 11:59:51 -07:00
Phil Hagelberg
8e15d2ded5 Document profile merge logic a bit. 2012-08-22 11:41:04 -07:00
Phil Hagelberg
00ee950ef9 Load hooks inside reset-profiles. Fixes #740. 2012-08-22 11:40:51 -07:00
Phil Hagelberg
4a6953c881 Rename with-profiles to reset-profiles.
with-profiles is too close to the task name, especially considering
the with-profile task is aliased to with-profiles.
2012-08-22 11:31:25 -07:00