Commit graph

3206 commits

Author SHA1 Message Date
Phil Hagelberg
c46b6c93ff Add :eval-in :pprint for debugging Leiningen and plugins. 2013-08-08 12:01:08 -07:00
Phil Hagelberg
2f684415df Save off project into an atom when trampolining for later use.
This will break when you do crazy stuff like:

    $ lein trampoline do with-profile production compile, repl

but it's better than the old behaviour.

Fixes #1277.
2013-08-08 12:01:08 -07:00
Phil Hagelberg
b0db412dd7 Merge pull request #1278 from fredericksgary/issue-1276
Issue #1276: cleanup wrong-arg-num err msg on 0-arg tasks
2013-08-05 13:28:01 -07:00
Gary Fredericks
5a089b8e18 Issue #1276: cleanup wrong-arg-num err msg on 0-arg tasks
0 arg task arglist was printing as `""` since passing `[project]` to
`next` resulted in `nil` which prints as `""`. Used `(comp vec next)`
instead to force it into `[]` which prints as `"[]"`.
2013-08-05 15:07:41 -05:00
Phil Hagelberg
257cb470e1 Typo fix. 2013-08-04 21:20:26 -07:00
Phil Hagelberg
dc92429602 Support literal strings in :clean-targets. 2013-08-04 13:27:58 -07:00
Phil Hagelberg
b3f1e8baac Merge pull request #1275 from kohyama/issue1272
Issue #1272: Add :clean-targets option
2013-08-04 13:27:12 -07:00
Yoshinori Kohyama
c3a60886f3 Issue #1272: Add :clean-targets option
Add :clean-targets option to let `lein clean` remove files under
directories other than one specified by :target-path
2013-08-04 18:46:16 +09:00
Phil Hagelberg
b03aa79cfa Merge pull request #1271 from fredericksgary/issue-1269
Issue 1269
2013-08-01 09:09:55 -07:00
Gary Fredericks
7c6cc0e8c3 Minor cleanup from PR feedback 2013-08-01 10:17:36 -05:00
Phil Hagelberg
aa9af873f6 Merge pull request #1270 from manandbytes/oraclejdk7
Enable Oracle's JDK7
2013-07-31 22:08:11 -07:00
Phil Hagelberg
3743c71c97 Include licenses and readmes in jar.
Fixes #880.
2013-07-31 22:02:38 -07:00
Phil Hagelberg
7e7a38e332 Suggest using profiles to change project map in PLUGINS.md.
Also clarify that auto-loaded hooks are only checked in :plugins.

Fixes #1258.
2013-07-31 22:02:16 -07:00
Gary Fredericks
08eaf70781 #1269: Skip tests differently when using :test-selectors
The old method skipped tests by adding a hook to
clojure.test/test-var, the problem being that :each fixtures
associated with the test have already run at that point, which is
unideal.

This change skips test by removing their :test metadata before running
the tests at all, which causes clojure.test to not see it as a test.

We use ns-interns to enumerate the vars, the same way clojure.test
does.
2013-07-31 23:29:19 -05:00
Gary Fredericks
239fd8d727 Refactor a couple reduces into a couple somes
I think it's a little simpler this way.
2013-07-31 23:11:26 -05:00
Phil Hagelberg
9f9ab003cd Oops; typo. 2013-07-30 21:00:52 -07:00
Phil Hagelberg
0f8d67d2e3 Remove dependency on "useful" library for packaging purposes.
This dependency pulls in a number of other dependencies which we don't
use but which are difficult for downstream packagers to deal with.

Include our own version of map-vals (because seriously, why is this
not already part of Clojure) and update-first (because re-forming
those problems without it crazy convoluted). But our implementation is
a fair bit shorter because it doesn't have to handle all the edge
cases.
2013-07-30 20:57:56 -07:00
Phil Hagelberg
36ce822b0c Merge pull request #1268 from babilen/dev/new-license
Add LICENSE file to project templates
2013-07-30 09:32:35 -07:00
Wolodja Wentland
83c136daa1 Add LICENSE file to project templates
Projects created by "lein new" are meant to be licensed under the EPL as noted
in project.clj and README.md. One requirement of the EPL is, however, that "a
copy of this Agreement [the EPL] must be included with each copy of the
Program." [0].

This means that projects created by leiningen cannot be legally distributed if
the author fails to add the LICENSE him/herself. This patch fixes this issue
by creating a LICENSE file with a plain text copy of the EPL 1.0 (cf. [0]) by
default for new projects.

[0] http://www.eclipse.org/legal/epl-v10.html → 3. REQUIREMENTS
2013-07-30 15:07:44 +01:00
Jean Niklas L'orange
2324cd21fc com.hypirion.io 0.3.1 (1.6-compiled) 2013-07-30 16:01:35 +02:00
Jean Niklas L'orange
3c2cd2f5a1 Bump com.hypirion.io to 0.3.0. 2013-07-30 11:19:44 +02:00
Jean Niklas L'orange
ea90ec0145 Properly document template tags. 2013-07-29 01:06:31 +02:00
Phil Hagelberg
9a5ce6ac6b News updates. 2013-07-28 12:51:38 -07:00
Phil Hagelberg
339c90567a Merge pull request #1264 from luigidt/winxp_fix
Fix NoClassDefFoundError when path has spaces
2013-07-26 14:17:00 -07:00
Phil Hagelberg
cab18f6bfe Mention +/- syntax and per-profile isolation in PROFILES.md. 2013-07-26 14:11:43 -07:00
Phil Hagelberg
9211b6ab3f Reword windows installer link. 2013-07-26 14:11:43 -07:00
Phil Hagelberg
d14b264f10 Run repl :init inside init-ns. Fixes #1250. 2013-07-26 14:11:43 -07:00
Colin Jones
523f09df29 Bump REPLy version for completion bug
refs trptcolin/reply#120
2013-07-26 15:47:56 -05:00
Luigi D. Teixeira
d2afb8fa06 Fix NoClassDefFoundError when path has spaces
Fix NoClassDefFoundError when LEIN_HOME has spaces.

Related to issue #1238
2013-07-26 15:45:26 -03:00
Mykola Nikishov
0f19408737 Allow Oracle JDK 7 build to fail 2013-07-26 17:37:37 +03:00
Mykola Nikishov
220dc86b15 Enable Oracle's JDK7 2013-07-26 17:37:37 +03:00
Mykola Nikishov
175d48d30c Build commits into any branch 2013-07-26 17:37:37 +03:00
Jean Niklas L'orange
2d8d5b39a6 Revert uberjar test back to std. name, ref #1260. 2013-07-26 09:17:35 +02:00
Phil Hagelberg
1226a7ae64 Calculate uberjar filename before merging uberjar profile. 2013-07-25 16:09:00 -07:00
Phil Hagelberg
fb532b0137 Move provided profile merge to prep call in jar task.
Fixes #1260.
2013-07-25 16:08:45 -07:00
Jean Niklas L'orange
492bec07dc Document LEIN_JVM_OPTS. Closes #1261. 2013-07-25 16:08:43 +02:00
Jean Niklas L'orange
ae161bac8a "Fix" uberjar test, and make jar defn private.
Ref #1260, all uberjars generated without any specific profile
additions/deletions are now put in the folder `target/uberjar+provided`.
That's not intentional, right?
2013-07-25 10:37:58 +02:00
Phil Hagelberg
f9395ba22e Deprecate explicit self-install command in bin/lein.
Fixes #1251
2013-07-24 20:55:44 -07:00
Phil Hagelberg
aa3356c10b Splice :version into :jar-name. 2013-07-24 20:55:34 -07:00
Phil Hagelberg
53fdf1c685 Scope :compile-path and :native-path under :target-path. 2013-07-24 20:55:28 -07:00
Phil Hagelberg
962ce20ae9 Scope :compile-path and :native-path under :target-path. 2013-07-24 20:55:23 -07:00
Phil Hagelberg
4feade3f7b Fix wonky newlines. 2013-07-24 19:21:23 -07:00
Phil Hagelberg
ce29c12e68 Re-word contributing message. 2013-07-24 19:21:07 -07:00
Jean Niklas L'orange
2276cfa392 Remove lib directory from template gitignore. 2013-07-25 00:02:22 +02:00
Jean Niklas L'orange
af9ecff28d :use -> :require in "template" template. 2013-07-24 23:59:17 +02:00
Jean Niklas L'orange
fcd8bd05d1 Make templates.clj conform to code conventions. 2013-07-23 22:33:55 +02:00
Phil Hagelberg
5b26b89d9c Support :pedantic? :abort/:warn.
Move range/overlap detection into l.c.classpath.

Fixes #1197.
2013-07-22 18:45:16 -07:00
Jean Niklas L'orange
b540e8ae95 Merge branch 'expand-composite-profiles' 2013-07-20 18:50:34 +02:00
Jean Niklas L'orange
7a935545c4 Don't attach subprofiles to metadata map.
Whenever composite profiles were added to project maps, their children
were also attached as active profiles. This confuses `with-profile` and
profile merging task where excluded profiles only remove the name of the
composite profile, not the subprofiles. This allows uberjar to exclude
the default profile without excluding subprofiles, without excluding
active subprofiles themselves.

So these task actions now produce sensible results:
`lein with-profile +dev uberjar` -> uberjar with dev-dependencies, but
without the other default profiles
`lein -U uberjar` -> uberjar with snapshot updates, but not with any
default dependencies added.

Fixes #1233.
2013-07-20 18:45:07 +02:00
Jean Niklas L'orange
cd8ed45638 Expand composite profiles before removing them.
This seem to handle #1233 correctly, but breaks a pom test. I assume
there's some part of the merge logic I've forgotten, so feel free to
peek around and comment on what I've currently done.
2013-07-18 01:45:25 +02:00