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
Justin Balthrop
84c93a28b3
apply middleware whenever project profiles are modified
...
This can happen in merge-profiles, unmerge-profiles or in the newly
added reset-profiles. All three rebuild the project map from scratch
using `(:without-profiles (meta project))`. This prevents middleware
from being applied twice to the same project map.
We also have to call apply-middleware explicitly in init-project because
we want to load-plugins before applying middleware in this case only. An
alternative would be to load plugins every time project profiles are
modified. @technomancy, what do you think of that option?
Issue #401
Conflicts:
leiningen-core/src/leiningen/core/main.clj
src/leiningen/pom.clj
2012-08-13 11:46:09 -07:00
Justin Balthrop
ddc2ca0321
automatically load middleware and hooks from plugins
...
- this is a first pass at #401
- there are still some questions about the order of everything
- the current implementation may still break #599
2012-08-13 11:36:26 -07:00
Chas Emerick
acdaa4cf6a
only emit allowed elements within pom's <scm>
2012-08-10 22:23:33 -04:00
Phil Hagelberg
50e14e06e6
Document gpg key generation in deployment guide. Fixes #721 .
2012-08-10 18:55:15 -07:00
Phil Hagelberg
7abcb57c58
Turns out pom.asc is correct here.
2012-08-10 15:20:39 -07:00
Phil Hagelberg
0c594e72a6
Exception handling in main can be simplified now that we're using ex-info.
2012-08-10 11:15:30 -07:00
Phil Hagelberg
c6acc122f1
Improve error message when plugin isn't found.
2012-08-10 10:59:11 -07:00
Phil Hagelberg
80fc9662fb
Collapse search results into single list of hits. Fixes #683 .
2012-08-09 22:52:25 -07:00
Phil Hagelberg
0e50c35474
Pagination of search results.
2012-08-09 22:51:22 -07:00