Commit graph

803 commits

Author SHA1 Message Date
Phil Hagelberg
2fbec2be5e Allow project values to be spliced into alias invocations. 2014-06-08 12:48:58 -07:00
Phil Hagelberg
353d73912c Allow for plugins to override built-in tasks. 2014-06-05 12:08:06 -07:00
Phil Hagelberg
d8634b2272 Pass a stringed symbol into bump-version instead of a keyword. 2014-05-27 16:37:59 -07:00
Phil Hagelberg
b3f3537386 Avoid need for double-escaping in :release-tasks.
As per the recommendation of @crisptrutski.
2014-05-27 15:05:00 -07:00
Phil Hagelberg
b1a07d03ec Pass arguments to f in change task through the reader.
This means that you can use non-strings as args in the change task,
but it requires double-quoting when you do want strings.
2014-05-27 11:46:15 -07:00
Phil Hagelberg
88f2d3458e Reword a few things in deploy.md. 2014-05-27 10:46:37 -07:00
Phil Hagelberg
73d5e4c9f3 Ensure project.clj is written to project root.
Without this, tools such as grenchman will write project.clj to the
directory from which Leiningen was launched.

Also make require-resolve work like resolve for unqualified symbols.
2014-05-27 09:53:13 -07:00
Phil Hagelberg
f37710473b Silence warn calls when LEIN_SILENT is set. 2014-05-25 19:17:34 -07:00
Phil Hagelberg
74b0dc5b66 Merge remote-tracking branch 'cddr/826-info-messages-to-stder'
Conflicts:
	leiningen-core/src/leiningen/core/classpath.clj
2014-05-25 19:16:16 -07:00
Phil Hagelberg
28eb8f02c5 Make bump-version work with strings and default to bound *level*. 2014-05-25 15:05:56 -07:00
Phil Hagelberg
2ee940117c Merge remote-tracking branch 'waynr/lein-release'
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2014-05-25 14:57:31 -07:00
Wayne
91938de99f Minor changes for lein-release.
* Adds 'commit' multimethod and :git impelementation.'
* Use binding on leiningen.release/*level* to pass release task arg to default
  :release-tasks.
2014-05-25 01:58:01 -07:00
Phil Hagelberg
c83b2facfe WIP: merge change task and release. 2014-05-24 09:59:29 -07:00
Phil Hagelberg
80d4f130fc Merge branch 'release'
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2014-05-24 09:24:24 -07:00
Phil Hagelberg
0b9bf383c2 Implement :release-tasks. 2014-05-23 22:27:06 -07:00
Peter Garbers
d214fe99a8 Lists duplicate keys in exception thrown 2014-05-23 00:52:41 +02:00
Peter Garbers
98d113374f defproject throws an exception on duplicate keys 2014-05-22 02:49:01 +02:00
Phil Hagelberg
051ec98f10 Add vcs task with subtasks. 2014-05-16 10:12:47 -07:00
Andy Chambers
1ffbb408db Use warn instead of info where applicable 2014-04-26 17:17:56 -04:00
Phil Hagelberg
23b0804f67 Add ^:replace metadata to :aot [:all] normalization. 2014-04-24 13:30:47 -07:00
Phil Hagelberg
f5305ab47b Merge :plugin-repositories into :repositories before loading plugins. 2014-04-23 09:18:38 -07:00
Jim Crossley
d1ed9f83fe Prevent NPE when pedantic encounters dupe top-level deps to fix #1498 2014-04-22 20:10:32 -04:00
Phil Hagelberg
07a1ecaa93 Normalize :aot :all to :aot [:all].
This fixes type mismatch issues when merging profiles.

Fixes #1488.
2014-04-22 16:41:50 -07:00
Phil Hagelberg
f4b0bf6ec9 Fix weird de-duping behaviour in pom.
It used to be we would merge a bunch of profiles into the project, and
then trim out dupes based on group/artifact/version, which was totally
wrong; it ignores classifiers and extensions.
2014-04-22 16:24:10 -07:00
Phil Hagelberg
460fc9c3a1 Actually use :plugin-repositories. Fixes #1474. 2014-04-22 15:24:35 -07:00
Phil Hagelberg
88181a4bbf Use dep-key for distinct call in pom task.
group/artifact version tuple isn't enough to de-dupe correctly.

Fixes #1494.
2014-04-22 15:03:34 -07:00
Andy Chambers
aa789d8282 Fixes #826; Redirect info messages to *err*
I decided to leave some messages alone. Specifically

 * messages which look like stacktraces
 * messages which instruct the user to take some sort of action

Arguably the stacktraces should go to stderr but I thought I'd leave
those open for discussion. Any others that remain represent errors on
my part.
2014-04-19 15:54:52 -04:00
Jim Crossley
9d8b214ccc Include group in dedupe key to fix #1480 2014-04-15 17:29:14 -04:00
Hugo Duncan
5e26a1639f Flush output of exception error messages
When running on OS X, an exception thrown in a plugin was resulting in
no output from lein.  Adding the flush ensures the output occurs before
the process exits.
2014-04-14 10:07:57 -04:00
Jean Niklas L'orange
579499b5e7 Depend on latest Pomegranate, fixes #1447. 2014-04-08 00:23:27 +02:00
Phil Hagelberg
5c6db48efa Lock on *out* when printing during dependency fetches. 2014-04-03 20:37:20 -07:00
Phil Hagelberg
ed67d8093b Make Leiningen (more) Eastwood-friendly.
Still get a couple warnings... We don't really care about the
unlimited-use warnings from clojure.test, and there are a couple
warnings we get stemming from bugs/limitations in Eastwood.
2014-04-03 20:18:28 -07:00
Jim Crossley
ca32d3e28a Expand profiles before [un]merging them, re #1421
This mainly addresses the fact that the following two commands generate
different output:
  $ lein pom
  $ lein with-profile default pom
I believe the problem also affects uberjar, since both tasks unmerge
:default prior to doing their thing.

Version 2.3.4 generates the same output for the above two commands,
because it doesn't expand profiles in the with-profile task, as master
does. So this change attempts to only deal with fully-expanded profiles
when [un]merging them.
2014-03-28 22:05:58 -04:00
Jean Niklas L'orange
a296ff8918 Bump all Clojure 1.5.1 deps to 1.6.0. 2014-03-26 13:43:38 +01:00
Jean Niklas L'orange
90bf2d47cd Consistent comment style. 2014-03-24 20:24:31 +01:00
Phil Hagelberg
110e2a14e9 Add -XX:-OmitStackTraceInFastThrow to default JVM opts.
Addresses #1025.
2014-03-21 09:55:33 -07:00
Phil Hagelberg
ae91367b78 Tell Bultitude not to ignore unreadable namespaces in test/check.
Fixes #1409.
2014-03-17 15:21:19 -07:00
Phil Hagelberg
eb189083f8 Oh no, slimed! 2014-03-07 11:54:53 -08:00
Phil Hagelberg
f67ff6d0bc Check :pass-through-help on vector aliases too, not just final var. 2014-03-07 11:41:01 -08:00
Phil Hagelberg
ca46d0e987 Use more meaningful data in test-task-args-help-pass-through. 2014-03-07 11:39:39 -08:00
Phil Hagelberg
64f79c6e7a Clarify :warn-on-reflection deprecation warning. 2014-03-07 10:12:36 -08:00
Phil Hagelberg
3ff470363b Dereference vector aliases in task-args. 2014-03-07 10:09:12 -08:00
Phil Hagelberg
e4e65177f6 Use a real lein task in pass-through-help tests, not funky var magic. 2014-03-07 09:55:13 -08:00
Phil Hagelberg
4a1373ab10 Don't require :pass-through-help to be a boolean. 2014-03-07 09:54:51 -08:00
Ryan McGowan
a02ff7b57b Modify task-args to support pass-through-help meta.
By default, leiningen makes the following transformation:

	lein TASK_NAME --help → lein help TASK_NAME

For tasks that implement a help, this is inconvenient. This patch
disables this transformation for task vars and alias values marked with
the meta: :pass-through-help true
2014-03-06 21:43:37 -08:00
Phil Hagelberg
0896686a5c Merge remote-tracking branch 'laurentpetit/master'
Conflicts:
	leiningen-core/src/leiningen/core/main.clj
2014-03-06 13:33:19 -08:00
Phil Hagelberg
606ceffe44 Fix tests for task arity mismatch abort messages. 2014-03-06 13:13:23 -08:00
Phil Hagelberg
1803f4d5fd Fix test failures due to missing artifacts.
Somehow a dependency of nodisassemble disappeared from Maven Central.
2014-03-06 12:57:48 -08:00
Phil Hagelberg
54156c95a2 Merge pull request #1440 from benwbooth/master
Show uncaught exceptions when using grenchman, don't display "Suppressed exit" when calling exit
2014-03-04 17:30:55 -08:00
Jean Niklas L'orange
a28eeca1df Warn once when project.clj in checkout is missing. 2014-02-25 21:47:25 +01:00