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
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
e48486f7ee
Merge pull request #725 from joegallo/task-typos
...
Task typos
2012-08-09 15:04:49 -07:00
Phil Hagelberg
0079868188
Better error message for malformed user profiles.clj.
2012-08-09 11:00:10 -07:00
Phil Hagelberg
0c22b5d893
News updates.
2012-08-08 21:05:27 -07:00
Chas Emerick
7489266e9f
fix recursive merging of profiles that involve
...
^:replace and ^:displace meta on nested values
2012-08-08 17:23:31 -04:00
Joe Gallo
5e2ff4ebd3
Only the suggestions that have the same minimum distance.
2012-08-08 09:22:51 -04:00
Joe Gallo
363d1c61c2
Initial crack at suggestions.
2012-08-08 07:42:48 -04:00
Joe Gallo
37aa5ab37a
Distance fn from amalloy.
2012-08-08 07:42:26 -04:00
Joe Gallo
49ea29af1a
Whitespace.
2012-08-08 07:41:42 -04:00
Phil Hagelberg
6700322a8a
Distinguish between false and nil when checking file existence.
2012-08-06 17:32:29 -07:00
Phil Hagelberg
09052b7deb
Use when for side-effects, not return values.
...
Should really blog about this.
2012-08-06 16:09:43 -07:00
Phil Hagelberg
a4d87094ff
Temporarily honor numeric exit codes and warn of deprecation.
2012-08-06 12:40:51 -07:00
Michael Klishin
f4cfb8bb5d
Merge pull request #709 from oliyh/master
...
Issue #706 - adding non-proxy-hosts
2012-07-31 04:44:28 -07:00
Oliver Hine
06259b6948
merging http proxy changes
2012-07-31 11:58:35 +01:00
Oliver Hine
af9aeff3ef
making http.nonProxyHosts more optional
2012-07-31 11:49:41 +01:00
Oliver Hine
e4e044cc0e
propagating non-proxy-hosts to sub processes too
2012-07-30 15:19:51 +01:00
Michael Klishin
5f6db9db30
merging in pitherjo\'s change
2012-07-30 14:03:35 +01:00
oliyh
9604ce9732
Honouring http_no_proxy to complement http_proxy for apache httpcomponents client compatible libraries
2012-07-30 13:47:54 +01:00
Phil Hagelberg
8d3cd95c45
Give nicer messages instead of ex-info subprocess failed traces.
2012-07-27 16:44:49 -07:00
oliyh
ca1de526fe
Honouring http_no_proxy to complement http_proxy for apache httpcomponents client compatible libraries
2012-07-27 15:05:26 -07:00
Phil Hagelberg
efdbf06bcb
Clean up l.c.eval namespace.
2012-07-27 09:31:54 -07:00
Jon Pither
c89a497e62
using http_no_proxy instead of httpNoProxyHost
2012-07-27 10:34:07 +01:00
Jon Pither
732b7c4fbd
using http_no_proxy instead of clunky httpNoProxyHost
2012-07-27 10:29:53 +01:00
Jon Pither
7910c2f59e
passing non-proxy-hosts though to pomegranate if present as environmental arg
2012-07-26 14:36:06 +01:00
Phil Hagelberg
6ddc6b71a6
Bump ordered dependency. Fixes #697 .
2012-07-24 17:32:30 -07:00
Alex Osborne
1bac2ef834
Update bundled clojars.org SSL certificate. Fix #692
...
The new certificate is trusted by Oracle JVMs by default but there
are still some users with JVMs that don't have any default root certs
at all. The FreeBSD OpenJDK packages are apparently one such example.
2012-07-19 14:39:50 +10:00
Justin Balthrop
b41db4d03c
use composite profiles for :default
...
You can now overide :default in your project.clj to change what profiles are
active when none are specified. As part of this change, default is no longer
used to for built-in settings; these are now stored in the :base profile.
This makes it possible to override :default while still including the :base
profile.
2012-07-18 17:37:19 -07:00
Justin Balthrop
c36274b52e
separate combine-profile out into its own function for dsantiago
2012-07-18 17:37:19 -07:00
Justin Balthrop
cadfe5c92c
add support for composite-profiles
...
if a profile value is a vector, then combine the values using
combine-profiles. this allows you to remove duplication by putting
shared configuration in "base" profiles.
2012-07-18 17:37:19 -07:00
Phil Hagelberg
41c85ead1b
Unify exit code handling with ex-info.
2012-07-17 21:11:37 -07:00
Justin Balthrop
9f6f1cc78f
read profiles from PROJECT_ROOT/profiles.clj
...
This is useful as a place to put profile information that you don't
want committed. e.g. deployment server lists, passwords, etc...
2012-07-17 19:14:21 -07:00
Bruce Adams
94729fac33
Add aliases for -help and -version
...
This is helps people coming from the Java world. "java" accepts -help
and -version, and neither --help nor --version. With this commit,
Leiningen accepts long names with either single or double dashes.
2012-07-12 08:35:29 -04:00
Bruce Adams
20c266a60d
"aliases" need not be an atom, now it isn't
2012-07-12 08:31:31 -04:00
Bruce Adams
ff1476a50d
Remove redundant "help" aliases
2012-07-12 07:51:45 -04:00
Phil Hagelberg
066b557e97
Merge remote-tracking branch 'Moocar/prep-tasks'
...
Conflicts:
leiningen-core/src/leiningen/core/eval.clj
2012-07-11 17:12:14 -07:00
Bruce Adams
d233dc64fb
Intercept "help" after task name, issue #629
2012-07-11 19:45:29 -04:00
Phil Hagelberg
7a812270d9
Auto-detect wagons from plugins.
2012-07-09 16:32:45 -07:00
Anthony Marcar
1dab145352
prep-tasks handles both strings and vectors
2012-07-08 23:10:21 -07:00
Anthony Marcar
5b73ce321b
added prep-tasks which allows prep tasks to include args
2012-07-08 22:13:05 -07:00
Phil Hagelberg
4beeb70d1c
Allow successive eval-in-project calls with trampoline. Fixes #665 .
2012-07-08 13:47:44 -07:00
Phil Hagelberg
4c4502aacd
Formatting of chaining warning.
2012-07-03 22:37:32 -07:00
Phil Hagelberg
36856e4fad
Drop back to 2.0.0-SNAPSHOT, hopefully for the last time.
2012-06-27 16:54:31 -07:00
Phil Hagelberg
811e974174
Release 2.0.0-preview7.
2012-06-27 16:45:13 -07:00
Phil Hagelberg
a6659e15fa
Documentation, news, todo updates.
2012-06-27 16:06:48 -07:00
Phil Hagelberg
c79349d568
Add clojars to default :deploy-repositories.
2012-06-27 15:07:09 -07:00
Phil Hagelberg
7de4e12f4b
Look up aliases in prep and trampoline.
2012-06-27 10:32:57 -07:00
Phil Hagelberg
5775c6a2b8
Allow user-level repositories which contain credentials only.
2012-06-27 10:10:45 -07:00
Michael S. Klishin
1d2674ab11
Add an example to the warning about task chaining
...
This may or may not matter in interactive use but for upgrading users on travis-ci.org it will
save some confusion.
2012-06-27 12:03:33 +04:00
Phil Hagelberg
70695f5868
Work with latest pomegranate deploy-artifacts signature.
2012-06-26 17:31:36 -07:00
Phil Hagelberg
2fffac4854
Deploy signatures along with jars and poms.
...
Currently depends on pomegranate branch:
https://github.com/cemerick/pomegranate/pull/27
2012-06-26 17:31:36 -07:00
Phil Hagelberg
f00c985d4e
Use both built-in :leiningen/test profile and :test profile in test task.
2012-06-25 16:33:28 -07:00
Phil Hagelberg
5618a861d6
Don't decrypt credentials.clj.gpg for every request. Fixes #657 .
2012-06-25 13:59:30 -07:00
Phil Hagelberg
a32abdf51c
Plumb through mirror support to pomegranate. Fixes #271 .
...
Won't actually be visible until pomegranate is bumped to 0.0.13.
2012-06-25 11:08:59 -07:00
Phil Hagelberg
519d793b5f
Make problems loading project.clj explicit. Fixes #648 .
2012-06-24 21:56:19 -07:00
Phil Hagelberg
de751e97d7
Pull in latest lein-newnew.
2012-06-22 20:47:20 -07:00
Phil Hagelberg
b7c6a63fd5
Qualify implicit ::test profile. Fixes #659 for real, hopefully.
2012-06-22 13:19:46 -07:00
Phil Hagelberg
9a04a356a5
Move hooke injection to :test profile. Fixes #659 .
2012-06-22 11:26:49 -07:00
Phil Hagelberg
8d5b8698bd
Honor :classifier and :extension when de-duping deps.
...
Fixes #645 .
2012-06-18 20:09:59 -07:00
Phil Hagelberg
93a7042f47
Fix when-stale invocation for native extraction. Fixes #647 .
2012-06-18 15:49:14 -07:00
Phil Hagelberg
2185d3809c
Remove faked out exit code.
2012-06-18 15:41:51 -07:00
Jacek Laskowski
03d4411da5
Fix for Issue #589 lein 2 leaves 'stale' directories all over the place
2012-06-18 23:16:33 +02:00
Phil Hagelberg
7a2bd4dd2a
Move tiered compilation out of profiles and injections into them.
2012-06-15 10:48:41 -07:00
Phil Hagelberg
c263783455
Turn :bootclasspath off by default; too many issues for now.
2012-06-15 10:48:26 -07:00
Phil Hagelberg
a581b006fb
Turn off bootclasspath for projects using 1.2.
...
Won't help if it's an indirect dependency forced by version ranges though.
2012-06-14 16:28:37 -07:00
Phil Hagelberg
80fa274979
Use bootclasspath inside eval-in-project. Fixes #639 .
2012-06-13 21:42:55 -07:00
Phil Hagelberg
d8d5ca15bf
Move user-agent to its own function; make it match lein version
more.
2012-06-13 10:02:53 -07:00
Phil Hagelberg
9f6934487e
Merge pull request #637 from bruceadams/master
...
Set "Leiningen" User-Agent in http requests for issue #636
2012-06-13 09:57:25 -07:00
Phil Hagelberg
6e78141f4a
Don't assume all args are strings; can have partial aliases.
2012-06-13 09:12:49 -07:00
Bruce Adams
977ba3d160
Fix messed up order of os.name os.version for #636
2012-06-13 09:44:51 -04:00
Bruce Adams
93d651c41f
Enhanced User-Agent string #636
2012-06-13 09:30:58 -04:00
Bruce Adams
d1b1ddc819
Set "Leiningen" User-Agent in http requests for issue #636
2012-06-13 08:08:32 -04:00
Phil Hagelberg
d960cb91b7
Allow leiningen.core.eval/sh to work with rebound *out* and *err*.
2012-06-11 18:45:29 -07:00
Phil Hagelberg
1da790ed78
Bump back to 2.0.0-SNAPSHOT.
2012-06-11 18:45:00 -07:00
Phil Hagelberg
e62275369a
Exclude .DSA files too.
2012-06-10 15:06:14 -07:00
Phil Hagelberg
d66451a4fd
Move hooke injections to default profile.
2012-06-09 22:10:29 -07:00
Phil Hagelberg
1be0c5edb9
Move task chaining to do task. Fixes #632 .
2012-06-09 21:48:23 -07:00
Phil Hagelberg
90e8fc609f
Consistent use of leiningen-version function.
2012-06-09 21:17:39 -07:00
Phil Hagelberg
858f26e29b
Todo updates.
2012-06-09 21:10:00 -07:00
Phil Hagelberg
dcb5aea2ce
Remove left-over use of integer error code in classloader eval.
2012-06-09 21:09:39 -07:00
Phil Hagelberg
69f59efced
Improve defproject docstring.
2012-06-09 19:48:40 -07:00
Phil Hagelberg
14c650c9b0
Release 2.0.0-preview6
2012-06-02 21:07:35 -07:00
Phil Hagelberg
6a4587eea7
Merge pull request #622 from jaceklaskowski/master
...
Read user profiles once (it uses IO so it should be faster)
2012-06-02 11:47:29 -07:00
Jacek Laskowski
e34812a3b0
Read user profiles once (it uses IO so it should be faster)
2012-06-02 20:16:10 +02:00
Alex Osborne
ac2ec152df
When outside project load the default project map. Fixes #613
...
The default certificates and repositories are in project/defaults
so we need to include it explicitly. The reason load-plugins knew
to try clojars at all is that normalize-repos explicitly adds the
default repos. This obviously doesn't happen for other keys such as
:certificates though.
2012-06-02 22:39:04 +10:00
Alex Osborne
26197cf1e2
Load SSL certificates even when running outside of a project. Fixes #613
...
We now treat them much the same as plugins, loading them explicitly
from the user and default profiles when the project is nil.
2012-06-02 20:58:03 +10:00
Alex Osborne
484151d007
Register certificates before calling get-classpath. Fixes #613
...
We need to do this as get-classpath can itself trigger the downloading
of dependencies. This also ensures leiningen-core/resources is added to
the classpath by the wrapper scripts.
2012-06-02 20:10:17 +10:00
Phil Hagelberg
060ab177d2
Add bin/release.
2012-06-01 22:01:48 -07:00
Phil Hagelberg
674b4d52ae
Replace :env values in :repositories with lookups from environment.
...
Needed for unattended builds.
2012-06-01 17:32:59 -07:00
Lee Hinman
b4f6b81085
memoize call to gpg credentials
2012-06-01 18:06:02 -06:00
Phil Hagelberg
ceab1688b9
Add browser-compatible hostname verifier to HTTPS scheme.
2012-06-01 16:47:36 -07:00
Phil Hagelberg
a4654dfc63
Honor :certificates in project.clj.
...
Should fix #304 and #613 .
2012-06-01 16:00:39 -07:00
Phil Hagelberg
3ac16dfee2
Depend on reply directly rather than using the default profile.
...
Fixes #616 .
2012-06-01 10:47:25 -07:00
Phil Hagelberg
71781a83f3
Back to 2.0.0-SNAPSHOT.
2012-06-01 10:46:54 -07:00
Phil Hagelberg
5a790ca7c8
Release 2.0.0-preview5.
2012-05-31 21:20:42 -07:00
Lee Hinman
873d7af224
Revert "cache gpg credentials, be okay with asking for a passphrase"
...
This reverts commit b67d9fc9de
.
2012-05-31 21:16:26 -06:00
Phil Hagelberg
f4a573a366
Temporary workaround for #613 .
2012-05-31 19:38:24 -07:00
Phil Hagelberg
8761269339
Bump reply version to 0.1.0-beta8
2012-05-31 15:34:37 -07:00
Lee Hinman
b67d9fc9de
cache gpg credentials, be okay with asking for a passphrase
2012-05-31 15:23:29 -06:00
Phil Hagelberg
5a1762d0e2
Remove test for deprecated :repository-auth settings.
2012-05-30 21:08:43 -07:00
Phil Hagelberg
0c6c58e329
Fall back to ordered 1.2.0.
2012-05-30 21:07:18 -07:00
Phil Hagelberg
3b7fda6b5f
Work around bug in ordered maps.
...
https://github.com/flatland/ordered/issues/4
2012-05-30 20:56:09 -07:00
Phil Hagelberg
e76422c31f
Change default :checksum policy to :fail. Fixes #571 .
2012-05-30 20:31:15 -07:00
Baishampayan Ghose
909783f50e
Fix #31 : Exclude RSA signature files from being included in uberjars.
2012-05-30 16:26:28 +05:30
Phil Hagelberg
203d0e0ee1
Move reply to default profile so that it can be upgraded.
...
Without this users are stuck with the version of reply that ships with
Leiningen since it's on the bootclasspath.
Fixes #591 .
2012-05-29 21:12:46 -07:00
Lee Hinman
d62959d595
only decrypt the default credentials file if the file exists
2012-05-29 16:13:47 -06:00
Phil Hagelberg
df88d4ca61
Java throws an exception if Runtime/exec doesn't find the command.
...
Fixes #608 .
2012-05-29 14:32:16 -07:00
Phil Hagelberg
b82ba5e423
Use ~/.lein/credentials.clj.gpg instead of :auth profile.
2012-05-28 13:47:29 -07:00
Phil Hagelberg
34eb0a5d22
Use https for clojars.
2012-05-28 13:46:14 -07:00
Phil Hagelberg
6fc245a082
Remove test for init-project.
...
This function now only does stateful irreversible things that are
difficult to test.
2012-05-27 21:57:47 -07:00
Phil Hagelberg
8a4702c3eb
Apply middleware before profiles are merged. Fixes #599 .
2012-05-27 21:50:07 -07:00
Phil Hagelberg
742025d084
Re-create compile-path after prepping if necessary. Fixes #596 .
2012-05-27 21:15:26 -07:00
Michael Klishin
3e3254e79a
Merge pull request #600 from cpmcdaniel/master
...
Fix for issue #594 . Proxy settings now propagating to sub-processes.
2012-05-23 12:55:42 -07:00
Craig McDaniel
9b2584749b
Renaming test to better reflect what it is actually testing.
2012-05-22 23:45:30 -04:00
Craig McDaniel
3fbafc7b84
Proxy environment variables are now converted to -Dhttp.proxyHost and
...
-Dhttp.proxyPort JVM args for subprocesses. Fixes #594 .
2012-05-22 23:34:38 -04:00
Bruce Adams
ac5f90243e
Create path for jar file entries
...
I believe this fixes issue 590.
https://github.com/technomancy/leiningen/issues/590
2012-05-22 22:29:08 -05:00
Phil Hagelberg
75c2508387
Fix uberjar exclusion for signature. Fixes #31 .
2012-05-21 13:28:47 -07:00
Phil Hagelberg
aee8aaa4f4
Allow :replace/:displace metadata to work on :dependencies entries.
2012-05-21 11:54:48 -07:00
Phil Hagelberg
a9c2f9effe
Check :target-path before writing stale file. Fixes #589 .
2012-05-18 08:52:23 -07:00
Phil Hagelberg
ad842b591e
Skip checkouts that don't define a project. Fixes #580 .
2012-05-14 18:46:34 -07:00
Phil Hagelberg
93bb6a1e14
Bump back to 2.0.0-SNAPSHOT.
2012-05-11 18:46:25 -07:00
Phil Hagelberg
104726ee71
Release 2.0.0-preview4.
2012-05-11 18:07:07 -07:00
Phil Hagelberg
625da9aa5c
Apply tiered compilation to the project JVM, not just Leiningen's own.
2012-05-11 14:52:52 -07:00
Phil Hagelberg
0217536ffa
Fix classpath test.
2012-05-11 14:20:20 -07:00
Phil Hagelberg
c918f53b0f
Fix typo.
2012-05-11 14:14:19 -07:00
Phil Hagelberg
54cc378671
Move :checkout-deps-shares to default profile.
...
This will prevent checkout deps from being used when just the
production profile is active. Also, this may be the first legitimate
use of flatten I've ever seen.
2012-05-11 14:10:22 -07:00
Phil Hagelberg
893dbd4b82
Remove stray printing.
...
[ci skip]
2012-05-11 13:46:00 -07:00
Phil Hagelberg
7d641026e4
Allow :checksum policy to be set at the top-level of project.clj as well.
2012-05-11 11:44:43 -07:00
Phil Hagelberg
2af8f1fcb8
Add :update profile and -U alias for applying it.
2012-05-11 11:44:42 -07:00
Phil Hagelberg
176bcf5e6d
Add :update support at the top-level of the project map.
2012-05-11 11:44:42 -07:00
Phil Hagelberg
0386485b87
Quote lein-newnew in default profile.
2012-05-10 12:05:09 -07:00
Phil Hagelberg
af2bcd1f0f
Move lein-newnew plugin to default profile. Fixes #540 .
2012-05-10 11:45:02 -07:00
Phil Hagelberg
3ec53df722
Fix tests to not spew out "stale" directories in root.
2012-05-10 11:45:02 -07:00
Phil Hagelberg
df6e39b38a
Fix JVM_OPTS with spaces, mostly. Closes #565 .
...
Spaces in opts will still break when a space is followed by a dash.
Use :jvm-opts in profiles if you can.
2012-05-10 11:45:02 -07:00
Phil Hagelberg
2df87f3dda
Reword a few things in READMEs, todo tweaks.
2012-05-09 19:22:04 -07:00
Phil Hagelberg
b5ed74c619
Merge pull request #564 from technomancy/issue512
...
Issue512
2012-05-09 14:51:18 -07:00
Nils Grunwald
2bf458b7a2
added -o as an alias
2012-05-09 23:31:12 +02:00
David Santiago
36120d8224
Make merge-profile private and convert found uses of it to merge-profiles.
2012-05-09 12:33:36 -07:00
David Santiago
a7707f0fff
Fix formatting of lein-core/project test.
2012-05-09 12:29:32 -07:00
David Santiago
0f07df9f4c
Add tests for unmerge-profiles and merging anonymous profiles through merge-profiles.
2012-05-09 11:23:30 -07:00
David Santiago
af618379a9
Fix merge-profile, which was incorrectly appending to the :included-profiles meta.
2012-05-09 11:23:12 -07:00
David Santiago
3fe6650a19
Fix bugs in unmerge-profiles. Add a test for unmerge-profiles.
2012-05-09 03:00:13 -07:00
David Santiago
482680ad24
Make add-profiles work even when there is no without-profiles metadata. Add a test for add-profiles.
2012-05-09 02:36:27 -07:00
David Santiago
53fb5cbf52
Update profiles-for to accept both keywords and direct maps.
2012-05-09 02:01:29 -07:00
David Santiago
155d32aef5
Add unmerge-profiles function.
2012-05-09 00:53:57 -07:00
David Santiago
6bbf4fc5d6
Return merge-profile to a public function, instead make it record the map it merges in the :included-profiles metadata.
2012-05-09 00:34:26 -07:00
David Santiago
1a8c9211dc
Add add-profiles function.
2012-05-09 00:07:42 -07:00
Phil Hagelberg
de4c3b5d69
Friendlier error message when deps can't be found. Fixes #546 .
2012-05-07 17:31:22 -07:00
David Santiago
262c669b26
Make merge-profile private.
2012-05-07 17:10:44 -07:00
Phil Hagelberg
6543bde5d9
Remove "checksum" verbiage from when-stale.
2012-05-07 17:04:41 -07:00
Phil Hagelberg
10a0da1991
Remove a layer of quoting in the when-stale files.
2012-05-07 17:03:12 -07:00
Phil Hagelberg
f6a4ba53ae
Don't re-extract native deps unless deps have changed. Fixes #535 .
...
Also introduces the when-stale helper function which should be useful
in other cases as well.
2012-05-07 16:29:31 -07:00
Phil Hagelberg
5cbe443560
Allow URL scheme to be omitted in $http_proxy.
...
Seems like most tools allow this to be omitted, so we should probably
follow suit.
2012-05-07 11:49:18 -07:00
Nelson Morris
3e1afa892e
Bump pomegranate for http deploy fixes
2012-05-06 14:37:20 -05:00
Jacek Laskowski
c3a6ee0a9f
Issue #559 : Provide leiningen-version function
2012-05-04 20:56:22 +02:00
Phil Hagelberg
7a04b5b5c2
Ignore user profiles in classpath tests. Fixes #550 .
...
May need a more global approach to this problem.
2012-04-29 17:30:35 -07:00
Phil Hagelberg
cdf0642dc8
Merge pull request #549 from hugoduncan/feature/add-fallback-for-lein-home
...
Add fallback for LEIN_HOME environment variable
2012-04-29 17:27:24 -07:00
Hugo Duncan
2c47d3aed6
Add fallback for LEIN_HOME environment variable
...
When using leiningen-core outside of lein, LEIN_HOME, which is set be the lein shell wrapper,
is not set. Fall back to using the system property for user.home to calculate the lein
home directory
2012-04-29 09:18:54 -04:00
Hugo Duncan
ccd3f58465
Decouple init-project from l.c.project/read
...
Reading a project should be side affect free. init-project modifies the current
classloader (and possible installs a new context classloader), so should not be
part of leiningen.core.project/read.
2012-04-29 09:07:51 -04:00
Phil Hagelberg
afc7df8e7e
Don't set environment to empty map by default.
2012-04-25 11:29:43 -07:00
Phil Hagelberg
4b63f9a953
Make the environment for subprocesses check a dynamic map.
2012-04-24 16:10:17 -07:00
Phil Hagelberg
1faf0eedb4
Bump version of ordered to avoid locked version range.
2012-04-24 16:10:17 -07:00
Chas Emerick
18d58964d5
test for init-project
2012-04-24 13:27:07 -04:00
Chas Emerick
b1ae6b0758
load plugins, middleware, hooks, etc after merging profiles in with-profile
2012-04-24 13:27:07 -04:00
Phil Hagelberg
5f5c0cdbab
Fix native-path and repl test failures.
2012-04-18 21:51:50 -07:00
Phil Hagelberg
b99b57a3d5
Clarify that :password and :passphrase are used by different repositories.
...
[ci skip]
2012-04-17 22:14:53 -07:00
Phil Hagelberg
fed8eb6241
Merge pull request #532 from kenrestivo/ce788c934159183eaaec2f3a9d841a862e791d52
...
Maven repos seem to want "password" not "passphrase"
2012-04-17 22:09:40 -07:00
Phil Hagelberg
9e83fc3f95
Bump to Clojure 1.4.0.
2012-04-17 22:07:04 -07:00
Phil Hagelberg
e04f1bee9b
Move :native-path to under target/ dir.
2012-04-17 22:04:29 -07:00
Chas Emerick
3da949b538
avoid NPE when searching for "Suppressed exit"
2012-04-17 07:59:52 -04:00
ken restivo
ce788c9341
maven wants password not passphrase
2012-04-16 22:32:44 -07:00
Phil Hagelberg
55935d01e9
Remove "bundled mode" from bin/lein.
2012-04-12 11:50:11 -07:00
Phil Hagelberg
030632acf6
Bump back to snapshot.
2012-04-12 10:37:34 -07:00
Phil Hagelberg
a95f990227
Release 2.0.0-preview3.
2012-04-12 10:18:32 -07:00
Phil Hagelberg
344a4658b0
Fix :offline? project key to have question mark.
2012-04-12 10:04:54 -07:00
Phil Hagelberg
de2ded08a7
Don't shutdown agents when exit is suppressed.
2012-04-12 10:04:12 -07:00
Phil Hagelberg
d17654bacd
Ensure deps are calculated in prep. Fixes #433 for real.
2012-04-10 17:25:50 -07:00
Nelson Morris
4ffde4c655
Bump pomegranate; fixes #491
2012-04-10 13:28:46 -05:00
Chas Emerick
a4821e0c79
don't call pomegranate/can-modify?
2012-04-09 18:53:39 -04:00
Phil Hagelberg
81652f9161
news/todos
2012-04-09 12:18:06 -07:00
Phil Hagelberg
13a6b10d90
Make help task look up argument in aliases map.
2012-04-09 11:54:29 -07:00
Phil Hagelberg
0a5d1edd8b
Remove last vestiges of exit-code-as-return-value. Fixes #510 .
2012-04-09 11:48:32 -07:00
Phil Hagelberg
49dcb03ecf
Don't warn of profile merge conflicts when the classes match.
2012-04-07 12:40:14 -07:00
Phil Hagelberg
5206f9315b
Automatically activate offline profile when needed. Fixes #478 .
2012-04-07 12:40:14 -07:00
Nelson Morris
3076100706
Handle global exclusions in all dependency cases. Fixes #498
...
Also remove global exclusion handling in pom generation, otherwise
it would generate 2 exclusion tags.
2012-04-04 19:02:54 -05:00
Phil Hagelberg
2307991c1a
Set http proxy system properties. Addresses half of #281 .
2012-04-04 11:21:06 -07:00
Phil Hagelberg
eb3806dc64
Get authentication info out of $http_proxy.
2012-04-04 10:04:45 -07:00
Phil Hagelberg
6a9713da7f
Fix get-proxy-settings when http_proxy isn't set.
2012-04-04 09:58:38 -07:00
Juergen Hoetzel
18362faf8a
add proxy support
...
Parse http_proxy environment variable to setup aether/pomegranate proxy config.
2012-04-04 18:12:56 +02:00
Phil Hagelberg
9f5e3187a9
Re-add missing stacktrace.
2012-04-03 11:33:17 -07:00
Phil Hagelberg
bd75def95b
Use main/info instead of println for loggish things. Fixes #473 .
2012-04-02 21:13:23 -07:00
David Santiago
0223ad8339
Fix merge-profiles so that it does not clobber existing metadata in the project map, but instead merges.
2012-04-02 17:50:24 -07:00
Phil Hagelberg
0babb90b05
Translate nonzero exit codes into exceptions. Fixes #493 .
2012-04-02 11:12:36 -07:00
Phil Hagelberg
56c8f1dd4d
Move :prep-tasks to default project instead of profile.
2012-04-02 10:29:17 -07:00
Phil Hagelberg
4b57ef2c8a
Fix absolutize to no longer assume unix paths.
2012-04-01 22:22:36 -07:00
Phil Hagelberg
3586e62e6b
Store :trampoline-promise in metadata instead of in project map. Fixes #490 .
2012-04-01 21:56:53 -07:00
Phil Hagelberg
de282bfbe5
Fix :without-profiles as per suggestion in #488 .
2012-04-01 09:13:56 -07:00
David Santiago
f52b7da79a
Fix merge-profiles so that :included-profiles metadata is added to if it is already present, instead of overwriting it.
2012-04-01 01:35:30 -07:00
Phil Hagelberg
a7c2878d36
Add debug and info functions for #473 .
...
Still need to start using them.
2012-03-30 11:09:41 -07:00
Phil Hagelberg
eef8fe3d08
Block repl on prep-tasks.
2012-03-29 18:42:36 -07:00
Phil Hagelberg
6e225eb0a9
Test needs to set-ize things.
2012-03-29 17:10:58 -07:00
Phil Hagelberg
020071e576
Whitelist classpath to just zip/jar files. Fixes #481 .
...
Helps with #457 .
2012-03-29 17:01:20 -07:00
David Santiago
2c034aa0d3
Add :included-profiles metadata to project map in merge-profiles. See issue 392.
2012-03-29 02:48:31 -07:00
Phil Hagelberg
21d9917a3f
Now :project-init is redundant with :injections.
2012-03-28 13:37:06 -07:00
Phil Hagelberg
a1d8abfb75
Add :offline profile.
2012-03-27 10:18:24 -07:00
Phil Hagelberg
6492101d36
Inline shutdown hook for killing subprocesses.
2012-03-27 10:18:17 -07:00
Phil Hagelberg
4e89806158
Shouldn't need to aot in leiningen-core anymore.
2012-03-25 19:19:36 -07:00
Colin Jones
82eeed1a4e
Destroy subprocesses on shutdown
...
This prevents orphaned processes from shelling out via
eval-in :subprocess. The song-and-dance around sh/
sh-without-orphans is to keep the public fn `sh` the same.
refs #455
2012-03-24 11:06:08 -05:00
Nelson Morris
d633fad0b6
Let deps :tree print a dependency tree
2012-03-22 22:27:16 -05:00
Phil Hagelberg
d04bc76a1b
Set :jvm-opts during eval-in :leiningen.
2012-03-20 13:53:25 -07:00
Michael S. Klishin
0761d16880
Use a more helpful message when task is not found
...
Instead of "that's not a task" print "... is not a task"
2012-03-13 23:12:05 +04:00
Phil Hagelberg
6141fdca51
Deprecate conj-dependencies.
...
This scenario should be handled by task-specific profiles instead of a
function like this.
2012-03-12 12:06:01 -07:00
Michael S. Klishin
712f1b9b84
Respect :java-cmd in project if it is given
2012-03-12 21:51:35 +04:00
Phil Hagelberg
245b036a4a
Back to 2.0.0-SNAPSHOT.
2012-03-11 21:06:48 -07:00
Phil Hagelberg
82bbd3b601
Release 2.0.0-preview2.
2012-03-08 20:33:47 -08:00
Phil Hagelberg
377904f6b8
Add :default profile in when loading plugins outside a project.
2012-03-08 10:26:02 -08:00
Roman Gonzalez
ec4f674e95
Fix documentation on add-repo-auth function
...
The documentation was after parameter list (checked out this issue via marginalia documentation).
2012-03-07 21:06:08 -08:00
Phil Hagelberg
bb381f9fd2
Handle nil :plugins key when running outside project dir.
2012-03-07 15:52:41 -08:00
Phil Hagelberg
cc711200a4
Move version back to 2.0.0-SNAPSHOT.
2012-03-07 14:24:03 -08:00
Phil Hagelberg
efe16d5dee
Release 2.0.0-preview1.
2012-03-07 12:06:48 -08:00
Phil Hagelberg
14ec91355b
Load plugins when operating outside a project dir.
2012-03-07 11:58:12 -08:00
Phil Hagelberg
f6f46c267e
Don't recursively prep project.
2012-03-07 11:30:26 -08:00
Tobias Crawley
158355303e
leiningen.core.main/task-not-found needs to be marked as not needing a project to work properly.
2012-03-07 13:59:20 -05:00
Phil Hagelberg
d6fdc21648
Allow suppressing of leiningen.core.main/exit for IDEs/tools.
2012-03-06 11:07:52 -08:00
Phil Hagelberg
1370be9725
Drop user/settings in favour of checking :user profile directly.
2012-03-06 11:07:51 -08:00
Phil Hagelberg
bf1ab79052
Port :checkout-deps-shares to master branch.
2012-03-05 17:39:48 -08:00
Phil Hagelberg
94a12b3cde
Pass through :local-repo and :offline? options to pomegranate.
2012-03-02 16:17:46 -08:00
Phil Hagelberg
c4dad5be02
Bump lein-newnew plugin to 0.2.4. Fixes #427 .
2012-03-02 14:15:14 -08:00
Phil Hagelberg
02e39e507a
Add conj-dependency function.
2012-03-01 15:50:56 -08:00
Phil Hagelberg
28397ad6eb
Test :exclusions.
2012-03-01 15:31:12 -08:00
Phil Hagelberg
5e7808796f
Move :dependencies back to vector-of-vectors.
2012-03-01 15:31:08 -08:00
Phil Hagelberg
861e4f08ea
Make leiningen-core dirs visible when testing leiningen proper.
2012-03-01 15:30:50 -08:00
Phil Hagelberg
71874208f3
Move normalization out of defproject into top-level comp.
2012-03-01 11:17:40 -08:00
Phil Hagelberg
85f2fa1935
Cosmetics.
2012-03-01 11:17:40 -08:00
Hugo Duncan
28fd085c5a
Add warning if a checkouts directory does not contain a project.clj
...
This provides a diagnostic message, will leaving open the possibility for other
type of projects in checkouts
2012-02-29 16:16:47 -05:00
Phil Hagelberg
29c262da3b
Don't put $LEIN_DIR/lib on the classpath; that's deprecated.
2012-02-25 22:01:53 -08:00
Anthony Grimes
9b0185747a
Switch to bultitude for ns finding stuff.
2012-02-24 22:15:19 -06:00
Phil Hagelberg
d0768feb11
Move prep-tasks out of atom into :default profile.
2012-02-24 15:55:55 -08:00
Phil Hagelberg
03aa94c661
Implement :middleware.
2012-02-24 15:38:10 -08:00
Chas Emerick
03b8635c67
keys in :auth :repository-auth can now be regexes matching repository URLs, fixes gh-424
2012-02-24 07:44:07 -05:00
Chas Emerick
f0a17e3aad
missed a test
2012-02-23 18:42:39 -05:00
Chas Emerick
a22da503be
load plugins through classpath/resolve-dependencies so as to benefit from authentication config, etc, fixes gh-423
2012-02-23 14:35:57 -05:00
Chas Emerick
d4169089cc
allow hook load/activation exceptions to bubble up, fixes gh-419
2012-02-23 13:25:34 -05:00