Commit graph

2429 commits

Author SHA1 Message Date
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
Chas Emerick
8e0fe8e108 add recipe for Maven Central deployment to DEPLOY.md 2012-08-16 07:33:01 -04:00
Phil Hagelberg
c41871c5b7 Add an exclusion to reply to fix bootstrapping issues. 2012-08-15 17:22:40 -07:00
Justin Balthrop
f263db162a Preserve metadata on project in merge/unmerge/reset-profiles
This fixes the bug that was causing 'lein repl' to hang.
2012-08-14 14:49:57 -07:00
Justin Balthrop
6358a9466d only nedd to print an error about explicit hooks that cannot be resolved 2012-08-14 11:58:08 -07:00
Phil Hagelberg
e25c9940dd Fix bugs in pom and repl tests. 2012-08-13 15:01:29 -07:00
Justin Balthrop
2c8b4ce0cc add missing utils require 2012-08-13 12:06:10 -07:00
Justin Balthrop
e491e76811 report errors better in load-hooks
- report require and activation errors separately
- don't complain if plugin-hooks are missing

Conflicts:
	leiningen-core/src/leiningen/core/utils.clj
2012-08-13 12:01:14 -07:00
Justin Balthrop
c0efbd1e7c use resolve-symbol for hooks and middleware 2012-08-13 11:48:38 -07:00
Justin Balthrop
6f1b58368b combine-profile does not need to keep track of included-profile.
Now it is just a partial around profile-key-merge and can
disappear. I hope dsantiago doesn't get mad.
2012-08-13 11:48:30 -07:00
Justin Balthrop
1f59aa8f99 add resolve-symbol to utils and use it in resolve-task
Conflicts:
	leiningen-core/src/leiningen/core/utils.clj
2012-08-13 11:47:56 -07:00