Commit graph

3588 commits

Author SHA1 Message Date
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
Phil Hagelberg
b9fc0d24c5 Merge pull request #1489 from CraZySacX/group-name
Add group-name to templates.clj
2014-04-03 13:27:48 -07:00
Jason Ozias
0a9c65266a added group-name to templates.clj 2014-04-03 15:00:45 -04:00
Phil Hagelberg
866e5173ab Merge pull request #1486 from mpblair/force-new
Add support for option to force execution of lein new when target directory already exists
2014-04-02 18:42:27 -07:00
Phil Hagelberg
785347c21e Merge remote-tracking branch 'jcrossley3/expand-profiles'
# 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-04-02 16:24:24 -07:00
Eunmin
12e4b460ad Correcting errors that used to be :sources-paths in plugin document. 2014-04-02 19:54:32 +09:00
Matthew Blair
65c3dd5766 Create new tests for use of --force option 2014-04-01 23:25:00 -04:00
Matthew Blair
f7c70fa2f0 Fix executable test - add force option since test is being run in system temp directory 2014-04-01 23:24:42 -04:00
Matthew Blair
4eb7781135 Update help text for -new- task 2014-04-01 22:55:47 -04:00
Matthew Blair
ae23f809ed Handle :force option in ->files function 2014-04-01 22:49:27 -04:00
Matthew Blair
6ae9793181 Fix bug where use of :to-dir option with an existing directory does not generate an error 2014-04-01 22:33:25 -04:00
Matthew Blair
c8ed55f04e Minor formatting fix 2014-04-01 20:21:33 -04:00
Jean Niklas L'orange
ebe5bf35d2 Reword error message from lein upgrade. 2014-03-31 13:28:55 +02:00
Jean Niklas L'orange
f6591bd660 Print error message when upgrade is unavailable.
Closes #1481.
2014-03-31 13:25:15 +02:00
Phil Hagelberg
26bc63afa4 Add workaround for #1480. 2014-03-29 21:22:40 -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
Phil Hagelberg
c6a49ea289 Merge pull request #1478 from MichaelBlume/use8
run travis tests with oraclejdk8
2014-03-28 15:58:09 -07:00
Mike Blume
f9c6bb444b run travis tests with oraclejdk8
for now, allow failure, since we're allowing failure for oraclejdk7

I see no indication that travis provides openjdk8, but I may be wrong
2014-03-28 15:35:21 -07:00
Colin Jones
5e048945e7 Allow searching on multiple fields at once
Also allows searching by version.

Examples:

$ lein search "id:clojure group:org.clojure version:1.6"
$ lein search "id:postgres version:7.4"
$ lein search "id:postgres version:'7.4'"
2014-03-27 09:42:26 -05:00
Phil Hagelberg
199527588a Document :clean-non-project-classes and reword help output.
[ci skip]
2014-03-26 13:33:12 -07: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
84af9246cf Do not depend on map ordering in tests. 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
6cdc043e9a Adapt template template so that the #1409 fix doesn't break new templates. 2014-03-17 15:30:40 -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
e8da286ea7 Failing test for #1409. 2014-03-17 14:25:44 -07:00
Phil Hagelberg
a64a47b8b8 Clarify credential prompt message in deploy task. Fixes #1435. 2014-03-17 10:48:59 -07:00
Phil Hagelberg
a6bebc9459 Merge pull request #1470 from fredericksgary/issue-1469
lein run: don't catch app errors as require errors
2014-03-13 20:06:17 -07:00
Gary Fredericks
b19b305d58 Slightly more homogeneous test project names 2014-03-13 20:24:42 -05:00
Gary Fredericks
cc886d56a3 lein run: don't catch app errors as require errors
closes #1469

`lein run` currently has some special error handling around
FileNotFoundException which helps it decide what exactly it should
do. Unfortunately if the actual running of the given main function
itself throws a FileNotFoundException this is currently caught by
Leiningen and assumed to be a require error.

The simple solution is to run the main method outside of that error
handling block.

Regression test provided.
2014-03-13 20:17:59 -05:00
Phil Hagelberg
87edf1c15e Merge pull request #1466 from mpblair/search-progress
Implement search download progress reporting
2014-03-13 14:16:17 -07:00
Matthew Blair
a45d184763 Yank gen-class definition from extstream.clj into search.clj; remove extstream.clj 2014-03-12 21:23:21 -04:00
Matthew Blair
7dc897888f Finishing touches 2014-03-12 19:04:03 -04:00
Matthew Blair
f2a14bae38 Subclass java.io.InputStream via gen-class. Does not print progress yet, but does correctly download all search indices 2014-03-11 20:33:46 -04:00
Phil Hagelberg
6056105176 Merge pull request #1468 from fredericksgary/skip-default-init
Document reply's :skip-default-init option
2014-03-10 20:39:35 -07:00
Gary Fredericks
17ba59ab14 Document reply's :skip-default-init option 2014-03-10 21:15:55 -05:00
Jean Niklas L'orange
291b09008d Merge pull request #1465 from fredericksgary/cleanup
Don't call concat
2014-03-08 18:04:38 +01:00
Matthew Blair
09d0bfa4b6 Implement search download progress reporting 2014-03-08 11:30:31 -05:00
Gary Fredericks
b6c079f8c8 Don't call concat
There, now there is slightly less code.
2014-03-08 09:25:44 -06: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
f509d4ec3d Document :pass-through-help in plugin guide. 2014-03-07 10:23:19 -08:00
Phil Hagelberg
c01fd49c83 Add exclusions for cd-client. 2014-03-07 10:13:35 -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