Phil Hagelberg
7aef5c3cfc
Bump version to 2.5.2-SNAPSHOT.
...
[ci skip]
2015-01-09 09:55:40 -08:00
Phil Hagelberg
b630fa37b8
Release 2.5.1
2015-01-09 09:47:16 -08:00
Phil Hagelberg
26dff1929c
Don't pass through :doc on alias metadata propagation.
...
It's likely that the alias vector provides additional arguments that
change the semantics of the invocation, so blindly propagating the
docstring would be misleading.
2014-12-05 09:25:18 -08:00
Phil Hagelberg
b4ed2564d5
Merge pull request #1769 from RyanMcG/fix-pass-through-help-on-vector-aliases
...
Fix pass-through-help on vector aliases by merging meta on aliases
2014-12-05 09:04:07 -08:00
Jean Niklas L'orange
d0ef5cbf1c
Improve with-write-permissions macro.
2014-12-02 11:58:01 +01:00
Ryan McGowan
02c9f3134a
Merge meta on aliases.
...
This fixes pass-through-help when used on vector valued aliases. Ex:
:aliases {"a" ^:pass-through-help ["run" "-m" "some.core"]
"b" ^:any-meta ["a"]}
The meta on task b will be `{:pass-through-help true, :any-meta true}`.
2014-12-01 20:06:24 -08:00
Max Prokopiev
5b2d994032
Add with-write-permissions macro and use it in leiningen.jar/jar to check for correct permissions
2014-10-27 12:58:22 +03:00
Jim Crossley
59ff0e61bf
Don't change order of included profiles; fixes #1740
2014-10-24 16:06:27 -04:00
Phil Hagelberg
481be7460d
Merge pull request #1732 from cprice404/bug/1695-repository-replace
...
Fix support for `^:replace` metadata on `:repositories` (fixes #1695 )
2014-10-23 15:17:53 -07:00
Phil Hagelberg
0f71e1b645
Expose version-satisfies?. Shouldn't be internal.
2014-10-23 14:41:07 -07:00
Chris Price
403e96a51e
( #1695 ) Respect priority when merging defaults
...
This commit adds an extra condition at the beginning of the
`setup-map-defaults` function, such that if one of the two
items being merged has a higher priority than the other,
it is honored.
This seems to fix the issue where the `^:replace` metadata
was not working properly
2014-10-18 15:44:54 -07:00
Chris Price
1354f15877
( #1695 ) Add failing test for repository replace
...
As described in #1695 , the `^:replace` metadata for the
`:repositories` section of the project file stopped working
around 2.4.0 (commit 17e91e6
).
This commit adds a failing test that illustrates the
behavior.
2014-10-18 15:24:53 -07:00
Phil Hagelberg
fa64351359
Merge pull request #1704 from hugoduncan/feature/add-task-profile-meta
...
Allow multiple repl task profiles
2014-10-11 20:12:43 -07:00
Phil Hagelberg
37f3c2535f
Merge pull request #1696 from hugoduncan/fix-profiles-on-aliases
...
Fix with-profile alias changes
2014-10-11 20:10:02 -07:00
Dante Briones
ba2588de28
Bump to version 2.7 (latest) of Maven wagon-http.
2014-10-07 10:15:08 -07:00
Dante Briones
15f6832813
Upgrade wagon-http
to version 2.6
2014-10-03 15:26:47 -07:00
Jean Niklas L'orange
93400c7a00
Merge pull request #1705 from dthume/RemovePrintlnFromGitFileContents
...
Remove println from leiningen.core.utils/git-file-contents
2014-09-22 13:22:57 +02:00
Jean Niklas L'orange
9cbb7df75a
Back to snapshot.
2014-09-22 13:19:10 +02:00
David Thomas Hume
903dfd824f
Remove println
2014-09-22 09:50:55 +01:00
Hugo Duncan
e946ad112f
Allow multiple repl task profiles
...
The :repl profile does not compose well when specified in both
project.clj and profiles.clj files.
Merge all profiles with ^:repl metadata in the repl task. This allows
multiple profiles to be applied for the repl task.
2014-09-21 10:19:04 -04:00
Hugo Duncan
7baeb2bce5
Add profiles-with-matching-meta
...
Function to return a sequence of profile keywords for all project
profiles with metadata matching a predicate.
2014-09-21 10:17:37 -04:00
Hugo Duncan
3150dc0fd8
Preserve metadata on profiles from profiles.clj
...
Preserve any metadata on profile maps specified in project.clj files.
2014-09-21 10:06:09 -04:00
Hugo Duncan
c2cc98e660
Add tests for with-profile
2014-09-16 09:16:13 -04:00
Hugo Duncan
d684019b46
Factor out default-project
...
Pulls the default project used when not in a directory into a separate
function, so it can be used in tests.
2014-09-16 09:16:12 -04:00
Phil Hagelberg
c78a8110a8
Release 2.5.0
2014-09-14 21:26:56 -07:00
Phil Hagelberg
7cca27e54a
Depend directly on nrepl/clojure-complete.
...
[ci skip]
2014-09-14 20:52:09 -07:00
Jean Niklas L'orange
9e980b0f8a
Bump nREPL version to 0.2.6
2014-09-15 01:26:18 +02:00
Jean Niklas L'orange
c362ae4bc2
Merge pull request #1691 from technomancy/fix-erroneous-shell-command-form
...
Fix negation in shell-command form.
2014-09-14 01:29:15 +02:00
Jean Niklas L'orange
2c8c5dcb5f
Fix erroneous shell command form, fixes #1683 .
2014-09-13 16:11:59 +02:00
Phil Hagelberg
23a772bfc2
Uberjar profile needs to be leaky too.
2014-09-10 16:25:25 -07:00
Hugo Duncan
bcb4e5af21
Propagate metadata on composite profiles
...
When metadata is specified on a composite profile, propagate the
metadata to the profiles it is composed of.
2014-09-10 07:00:36 -04:00
Phil Hagelberg
9def660852
Bump to 2.5.0-SNAPSHOT.
2014-09-09 16:26:47 -07:00
Phil Hagelberg
9a0448041a
Rename :core-default to :leiningen/default.
2014-09-09 16:24:12 -07:00
Hugo Duncan
2da05e6356
Add profile metadata
...
Adds :leaky and :pom-scope metadata for profiles. The :dev, :test,
:base and :provided profiles are implemented in terms of these.
Profiles with :leaky metadata affect the pom and jar creation.
Profiles with a :pom-scope metadata of :test or :provided also affect
the dependencies of a pom.
2014-09-09 13:27:49 -04:00
Jean Niklas L'orange
400ad40c44
Test higher order aliases.
2014-09-09 02:13:26 +02:00
Jean Niklas L'orange
66926d3b5d
Implement higher order aliases, closes #1678 .
2014-09-09 02:13:18 +02:00
Phil Hagelberg
e13ccd7a5c
Use plugin name for reading profiles for now.
...
This is for consistency with reading middleware/hooks. In the future it
might be nice to honor the group-id as well.
2014-09-08 11:17:09 -07:00
Phil Hagelberg
a206b0b1a2
Call load-plugins twice to fix chicken/egg problem.
...
Need to do this in order to support loading profiles from plugins but
also loading plugins from the :user and :system profiles.
fixes #1679
2014-09-08 11:01:39 -07:00
Phil Hagelberg
c8806ff12e
Revert addition of :downstream profile.
...
We need to revisit this in a way that doesn't involve hard-coding
profile names into the jar and pom tasks. The question of whether the
profile should be visible to downstream consumers should be determined
by data that's part of the profile (or metadata).
2014-09-08 10:05:21 -07:00
Phil Hagelberg
df3f67269f
Merge pull request #1676 from timmc/alt-jvm-encoding
...
Allow $LEIN_JVM_OPTS to override -Dfile.encoding
2014-09-08 09:51:06 -07:00
Tim McCormack
6696f11341
Allow JVM file.encoding to be overridden by anything.
...
This allows profiles to set a -Dfile.encoding. Later, perhaps in 3.0,
JVM_OPTS should perhaps be moved farther down the list (along with
:jvm-opts?) -- but that could be a breaking change. (Environment is
sometimes set locally, sometimes set globally.)
2014-09-08 09:17:06 -04:00
Nelson Morris
c142b24598
Show pedantic warnings and use profile merging to let deps :tree warn correctly
2014-09-07 20:42:48 -05:00
Phil Hagelberg
58df6c31ad
Merge branch 'profiles-from-plugins'
2014-09-06 10:54:47 -07:00
Phil Hagelberg
577e34919b
Merge remote-tracking branch 'hugoduncan/fix-unmerge-with-meta-profiles' into profiles-from-plugins
...
Conflicts:
src/leiningen/pom.clj
2014-09-05 20:47:02 -07:00
Phil Hagelberg
a9cf70e160
Revert "Apply profiles from middleware in main"
...
This reverts commit fe1be7d2dc
.
Conflicts:
leiningen-core/src/leiningen/core/main.clj
leiningen-core/src/leiningen/core/project.clj
2014-09-05 20:28:17 -07:00
Phil Hagelberg
6a7a35d062
Make leiningen.core.project/read init the project.
...
Add a raw-read alternative that reads without initializing.
This solves a certain chicken/egg problem with wanting to read profiles
from plugins before the plugins had been loaded.
2014-09-05 20:24:20 -07:00
Phil Hagelberg
0a8c0aaee6
Rename :project profile to :downstream.
2014-09-05 20:24:06 -07:00
Phil Hagelberg
e13312d344
Merge remote-tracking branch 'hugoduncan/feature/add-project-profile' into profiles-from-plugins
2014-09-05 19:29:35 -07:00
Phil Hagelberg
ec01608956
Fix loading profiles from plugins.
...
This does it too late in the process for plugin profiles to be
referenced from :default, but it's a start.
2014-09-05 09:24:33 -07:00
Phil Hagelberg
e9c9ff4883
Document in-plugin profiles.
2014-09-04 19:25:58 -07:00