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
Phil Hagelberg
d590f0ca1e
Trim long lines in sample.project.clj.
2012-08-22 11:19:21 -07:00
Chas Emerick
dbb7ca8de9
* upgrade to nREPL 0.2.0-beta9
...
* :nrepl-* configuration moved under :repl-options
* :nrepl-middleware now takes advantage of descriptors in middleware metadata
2012-08-22 13:47:35 -04:00
Phil Hagelberg
19ed0ea0b6
Fix out-of-project repls.
2012-08-22 10:42:57 -07:00
Phil Hagelberg
a04be9b655
Don't store prep blocker on project metadata.
2012-08-22 10:02:55 -07:00
Phil Hagelberg
cc16a95a59
Collapse load-hooks into one doseq.
2012-08-22 10:01:57 -07:00
Phil Hagelberg
9b22d6cdd7
The newnew plugin lives in default-profiles, not the default project.
2012-08-22 09:32:16 -07:00
Justin Balthrop
6cf023e101
rename reset-profiles to with-profiles
2012-08-21 18:46:09 -07:00
Justin Balthrop
badeefc6db
fix unmerge-profiles to work with composite profiles
...
Previously, you could not unmerge composite profiles. So, if the
currently active profiles were [:default], which is a composite of
[:dev :user :base], then (unmerge-profiles project :dev) would do
nothing. To fix this, we have to keep track of both :included-profiles
and :excluded-profiles.
I also combined apply-profiles and reset-profiles into a single function
called reset-profiles with an optional excluded-profiles argument and
renamed apply-profiles-raw to apply-profiles.
2012-08-21 18:20:49 -07:00
Phil Hagelberg
a28cd82bd0
Don't try to merge profiles without an active project.
...
We should simply use the user profile directly rather than trying to
merge it in.
2012-08-21 15:32:22 -07:00
Phil Hagelberg
47cc271249
Prefer vary-meta to with-meta. Rename combine-profiles to apply-profiles-raw.
2012-08-21 14:53:54 -07:00
Phil Hagelberg
3e5f3c77be
Rename resolve-symbol -> require-resolve.
2012-08-21 14:51:29 -07:00
Phil Hagelberg
a4b7ded2aa
Trim long lines in leiningen-core.
2012-08-21 14:49:39 -07:00
Phil Hagelberg
cb134380a2
Merge pull request #737 from jeremyheiler/master
...
:plugin-repositories for #717
2012-08-18 13:38:28 -07:00
Justin Balthrop
314f27ef81
Support ext dependencies in eval-in :classloader
...
Any dependency marked with :ext true will be loaded by the ext class loader.
Libraries with native dependencies (e.g. tokyocabinet) need to be loaded by
the ext classloader, because native libraries can only be loaded once per
JVM. Also, most SQL libraries (e.g. postgresql) need to be in the ext class
loader because java.sql.DriverManager holds onto the class.
2012-08-18 09:01:12 -07:00
Justin Balthrop
d5a9e18e7b
Better error messages for eval-in :classloader
...
Print the exception and stacktrace inside eval-in :classloader
and throw an ex-info just like eval-in :subprocess.
2012-08-18 09:00:06 -07:00
Justin Balthrop
ce4e1c9f74
Make :eval-in :classloader work with native deps
...
Use 0.6.6 classlojure's alter-java-library-path! to set java.library.path
at runtime.
Perhaps we should be setting all of these system properties back after
we are done, including this one?
2012-08-18 08:50:05 -07:00
Jeremy Heiler
c9a89f2ffd
Allow for plugin specific repositories with :plugin-repositories.
2012-08-18 10:27:46 -04:00
Justin Balthrop
23af751b04
Always set -Dclojure.compile.path when we are running from a checkout
...
This way, you don't have to put this in LEIN_JVM_OPTS
2012-08-17 17:48:42 -07:00
Justin Balthrop
a58bf27819
Try to make the LEIN_JVM_OPTS default sane for :eval-in :classloader
...
To do this, we grep project.clj. This won't always work, but it is good
enough for a default.
2012-08-17 17:45:39 -07:00
Justin Balthrop
5c56a4c451
Add support for .leinrc
...
Execute the project's .leinrc whenever bin/lein is run. This can be used
to customize various lein configuration in a specific project.
For example: LEIN_JVM_OPTS and LEIN_HOME.
Also support a global ~/.lein/leinrc for user customizations.
2012-08-17 17:45:39 -07:00
Phil Hagelberg
29673a7a56
Latest lein-newnew version. Fixes #638 .
2012-08-17 17:10:45 -07:00
Phil Hagelberg
65a574d09a
Document LEIN_FAST_TRAMPOLINE.
2012-08-17 14:32:29 -07:00
Phil Hagelberg
a01f13935b
Allow fix for recursive aliases to apply globally.
2012-08-17 13:46:34 -07:00
Phil Hagelberg
cc79e72cab
Fix project-level conditional for fast trampolines.
2012-08-17 13:43:46 -07:00
Phil Hagelberg
cbdf49168e
Allow :eval-in to be a symbol instead of a keyword.
2012-08-17 13:11:00 -07:00
Phil Hagelberg
5e82d1bcb8
Fix file leak when not using fast trampolines.
2012-08-17 10:58:37 -07:00
Phil Hagelberg
27ffe8b101
Make fast trampolines opt-in for now, use shasum for portability.
2012-08-17 10:41:38 -07:00
Phil Hagelberg
f9da16e37a
Cache trampoline commands. Fixes #573 .
...
Still needs to resolve the checksum command portably.
Also probably needs to be opt-in, at least at first.
2012-08-17 10:15:43 -07:00
Phil Hagelberg
fc71f68372
Support setting HTTPS proxy properties. Fixes #706 .
2012-08-17 10:13:18 -07:00
Phil Hagelberg
e00b1de6d9
Merge pull request #733 from bruceadams/robust-self-install
...
Download lein.jar to temporary name; rename into place for issue #719
2012-08-16 15:04:15 -07:00
Bruce Adams
56e118087b
Download lein.jar to temporary name; rename into place
2012-08-16 17:34:57 -04:00
Phil Hagelberg
2b1b373427
Soooo... profiles are incredibly hard to get right. So is trampoline.
2012-08-16 14:08:12 -07:00
Phil Hagelberg
d76f796047
Support picking up :dependencies from profiles in trampoline task.
...
Fixes #695 .
Fixes #732 .
2012-08-16 13:47:19 -07:00
Phil Hagelberg
fc7e3c7cb9
Back to snapshot.
2012-08-16 13:17:59 -07:00
Phil Hagelberg
ff8ed7f6a8
Release 2.0.0-preview8.
2012-08-16 11:06:45 -07:00
Phil Hagelberg
7aa941b56c
Workaround for CLJ-1034.
2012-08-16 11:02:13 -07:00
Phil Hagelberg
d9eba790de
News updates.
2012-08-16 10:57:06 -07:00
Phil Hagelberg
b84da7b214
Mention :offline? and :local-repo for production deploys in tutorial.
2012-08-16 10:41:12 -07:00
Phil Hagelberg
8cb129c5be
Put revision in pom.properties file.
2012-08-16 10:41:12 -07:00
Phil Hagelberg
d1ba7d7d10
Ensure we don't exit without at least a message.
2012-08-16 10:41:12 -07:00
Chas Emerick
47fc2e3f69
add ^:displace to all REPL-injected dependency vectors
2012-08-16 07:34:58 -04:00