Commit graph

948 commits

Author SHA1 Message Date
Chris Price
f592c811c9 Update to pomegranate 0.3.1 2016-03-22 07:04:18 -07:00
Rick Moynihan
e401c2d921 Allow user repositories with uberjar Fixes #2098
Allow user defined private repositories when building jars, uberjars and
running deploy tasks.

For details see issue at:

https://github.com/technomancy/leiningen/issues/2098
2016-02-23 15:13:56 +00:00
Chris Price
f981ddd247 Honor whitelist settings when javac called via jar - fixes #2089
This commit refactors a few things from the `jar` and
`javac` tasks in order to ensure that the "whitelisted"
settings from the user profile (`:local-repo`, `:mirrors`,
etc.) are honored when the `jar` task launches `javac`.

It also adds a test to validate the new behavior.
2016-02-16 12:15:41 -08:00
Jean Niklas L'orange
6046f1f848 Back to snapshot 2016-02-08 18:36:20 +01:00
Jean Niklas L'orange
f9a464e008
Release 2.6.1 2016-02-08 18:20:33 +01:00
Jean Niklas L'orange
4383caecce Print meta only during compile, fixes #2079
Passing in the project map as a parameter to eval-in-subprocess causes
havoc, as it has references to the functions reduce-dep-step and
reduce-repo-step in its metadata.
2016-02-07 01:23:59 +01:00
Jean Niklas L'orange
58b8c1658a Back to snapshot 2016-02-05 01:36:14 +01:00
Jean Niklas L'orange
0fe3f86a3c
Release 2.6.0 2016-02-05 01:17:21 +01:00
Jean Niklas L'orange
adb7b999fd Improve native dependency feedback, fixes #1961
Changes to a native dependency that is not cleaned up will be warned
about to the user. In addition, when a dependency changes, only the
dependencies that actually changed will be checked for native
dependencies, speeding up restart time significantly when you change a
single dependency in a big project.
2016-02-04 23:54:23 +01:00
Jean Niklas L'orange
56389b2067 Move away from deprecated Apache HTTP parts 2016-02-04 23:35:42 +01:00
Jean Niklas L'orange
c630502d18 Code cleanup 2016-02-04 23:32:52 +01:00
Jean Niklas L'orange
99d53683eb Print meta when eval-in-subprocess
This fixes the issue with reflection warnings in #2045, but
unfortunately breaks backwards compatibility with 1.1.0. So the lowest
version of Clojure Leiningen now supports is 1.2.0.
2016-02-04 23:24:37 +01:00
Daniel Compton
090e7a114e Upgrade clojure-complete from 0.2.3 to 0.2.4
0.2.4 contains type hints to eliminate reflection warnings.
2016-02-02 07:55:45 +13:00
Jean Niklas L'orange
51f80c1298 Clojure 1.8.0 2016-01-21 11:08:58 +01:00
Andrea Richiardi
e8e5e78687 Bind *read-eval* false when reading gpg credentials 2016-01-10 17:28:39 -08:00
Andrea Richiardi
12b44df3e7 Avoid piping std out when reading gpg credentials, ref #2062 2016-01-10 17:28:12 -08:00
Florian Anderiasch
f5682f543c Bump copyright years 2016-01-03 00:43:46 +01:00
Jean Niklas L'orange
b4161e347f Don't create implicit resource dirs, fixes #2010
Yeah, I know, this is not pretty.
2015-12-17 09:57:07 +01:00
solicode
d8cb708160 Modify tiered-jvm-opts for :base profile
Ensures `-XX:-OmitStackTraceInFastThrow` is always included by default
regardless of user's LEIN_JVM_OPTS. This setting can be overridden in
other profiles by the user.
2015-12-05 21:30:34 +09:00
Jean Niklas L'orange
53f12e8d4b Allow tasks to have vararg-only form, closes #1913
Aliases are higher order, but also attempts to keep track of tasks via
:arglists metadata. The :arglists update function assumed all tasks
would start with a project arg. However, this isn't necessary: A task
may e.g. have the form [& args] and destructure the project arg inside
the function. This caused lein to incorrectly assume that appending more
arguments to the tasks was an error. (The only tasks I know of right now
that does this is mine, so I should probably take the hint)

I also decided to clean up the drop-partial-args function a bit to make
it more readable.
2015-11-24 00:28:28 +01:00
Jean Niklas L'orange
58b5f7248b Remove duplicate profiles before profile merging
When we expand composite profiles, we may end up with multiple identical
profiles in the resulting list. However, we should only merge a profile
at most once. To fix this, we dedupe the list and retain the _last_
profile mentioned. We retain the last instead of the first as this
prioritises the last profile merges, which is somewhat important for
tasks like repl, uberjar, and to some extent `with-profile +foo`.

It might be interesting to see if we can get away from this in 3.0.0,
for example by saying that
(= (merge-profiles project [:a]) (merge-profiles project [:a :a])).

Fixes #1824 and fixes #2001.
2015-11-22 16:19:49 +01:00
Jean Niklas L'orange
fb876c7d49 Print GPG errors when we receive them, ref #1892
This isn't a perfect solution to error messages, as GPG bypasses the
stdin and sends data directly to the terminal. As such, things from
"stdin" is printed immediately, whereas stderr is printed through the
JVM. As a consequence, it's almost always the case that the stdin lines
are printed before the stderr lines, even though GPG usually sends them
in the opposite order. But it should give you a better indication when
something bad has happened.

Issue #1904 may accidentally be solved as well, as we now have a
shutdown hook on GPG.
2015-11-22 02:52:15 +01:00
Jean Niklas L'orange
c6b559ddb5 bump some hidden nrepl deps, ref #2017 2015-11-01 23:57:53 +01:00
Pietro F. Menna
d2a2076477 Return non zero status when :pedantic? is set to true or :abort
Closes #1856.
2015-10-11 17:16:46 -03:00
Jean Niklas L'orange
87c7e07da9 Back to snapshot 2015-09-22 00:37:56 +02:00
Jean Niklas L'orange
574aabb9d4 Release 2.5.3 2015-09-21 23:23:51 +02:00
James Reeves
1ecbb98ffc Create source, resource and test paths for eval prep
If a directory on the classpath does not exist when the JVM is started,
it's ignored even if it is subsequently created. This commit ensures
that source, resource and test paths exist as part of the prep work for
eval-in-project.
2015-09-04 04:20:32 +01:00
Tim Visher
30fccae5a1 Add eval/sh-with-exit-code
Exactly like `sh` except that it requires a failure message and if the
command exits with a non-0 code, it use the failure message to throw an
Exception.

Added unit tests as well.
2015-09-01 20:51:38 -04:00
shimanekb
e972e10cea fixed LANGUAGE only env variable 2015-08-22 23:00:41 -05:00
Phil Hagelberg
5ef752760c Add downgrade as first-class alias.
Upgrade/downgrade are "primitive" tasks that must be implemented in the
shell script for bootstrapping reasons. We have a dummy task just for
the purposes of having somewhere to hang a docstring; this commit adds
the alias for downgrade.

Fixes #1947
2015-08-10 10:58:27 +07:00
Jean Niklas L'orange
35aef5832b Back to snapshot. 2015-08-09 15:58:37 +02:00
Jean Niklas L'orange
fe48537e7d Release 2.5.2 2015-08-09 15:28:06 +02:00
Jean Niklas L'orange
7284785a77 Do not include repl deps as test deps, fixes #1771
While it's a good thought to have them as test dependencies, it just
breaks everything if you transitively depend on it.
2015-08-08 16:48:32 +02:00
Jean Niklas L'orange
4859747b16 Allow ^:displace'ing clojure dep in :repl profile
This is a temporary workaround, as this doesn't work for tools.nrepl nor
clojure-complete. Gurr.
2015-08-08 15:33:52 +02:00
Jean Niklas L'orange
08c8a9d53f Allow tools.nrepl and cc to be project deps again
Fixes #1748.
2015-08-08 03:09:33 +02:00
Phil Hagelberg
2ea050fc67 Merge pull request #1941 from towler73/master
added fix for components.xml merging.  If the description tag contain…
2015-07-30 08:45:16 +07:00
Jean Niklas L'orange
ffa700f946 Replace old HttpWagon conn-mngr setup. Fixes #1746
Bumping HttpWagon from 2.4 to 2.6 caused old methods in HttpWagon to
disappear, and along with it all the old Apache Http stuff we depended
on. This caused additional CA certificates provided in :certificates to
make Lein just fall on the floor and die.

This bumps HttpWagon to 2.9 and refactors Apache Http usage to
non-deprecated usage for the version we depend on.
2015-07-26 22:12:01 +02:00
Yannick Scherer
da574d7b4c add simple test for certificate processing.
Signed-off-by: Jean Niklas L'orange <jeannikl@hypirion.com>
2015-07-26 19:03:38 +02:00
Brett Morgan
79f0d3a99a added fix for components.xml merging. If the description tag contained embedded html, it needs to be escaped in the resulting merged components.xml. 2015-07-23 11:12:07 -04:00
Stephen Nelson
f413b6d73f Add support for reader conditional files (cljc)
Clojure 1.7.0 will add support for reader conditionals:

http://dev.clojure.org/display/design/Reader+Conditionals

This patch adds reader conditional support to leiningen, in particular for
compilation (including aot and stale files) and testing.
2015-07-19 08:52:49 +12:00
Stephen Nelson
6e0ebc20f7 Upgrade clojure dependency to 1.7.0 2015-07-16 15:11:01 +12:00
Jean Niklas L'orange
4ab6de9b9c Bump nrepl dependency. 2015-07-09 15:32:01 +02:00
Or Neeman
a1c4cb2d94 Refactor main/drop-partial-args 2015-04-23 12:58:03 -06:00
Jean Niklas L'orange
ff84da6972 Chas isn't wasting time, I can tell you that. 2015-03-24 21:56:17 +01:00
Jean Niklas L'orange
80c84f3dff Fix docstrings for checkout functions.
[ci skip]
2015-03-22 02:28:24 +01:00
Jean Niklas L'orange
17a32dd510 Merge pull request #1842 from avasenin/read-checkouts
Move read-checkouts to project module and make it public
2015-03-22 01:58:19 +01:00
solicode
4b7f6667a3 Ensure gpg outputs English messages 2015-03-22 04:01:58 +09:00
Jean Niklas L'orange
00e158f6f3 Bump standalone nrepl version as well, ref #1861. 2015-03-21 00:37:46 +01:00
Jean Niklas L'orange
c35a1de4f0 Avoid wrapping shell pipes in writers, fixes #1857
The fix is actually very easy: Instead of piping stuff into a reader,
then feed it to *out*/*err* via a writer, we directly hook them to
System.out and System.err.

The problem is that it kills many tests that rely on `with-out-str`, so
we have to include `with-system-err/out-str` macros to catch
sysout/syserr data, and replace usage where tests fail.
2015-03-21 00:12:26 +01:00
Andrey Vasenin
2b1f06880f Move read-checkouts to project module and make it public 2015-02-24 15:58:37 +06:00