Commit graph

4461 commits

Author SHA1 Message Date
Jean Niklas L'orange
aace7db2fe Merge pull request #1793 from m00nlight/hgignore
Add .hgignore to lein new output
2014-12-30 00:28:16 +01:00
m00nlight
09c8272124 remove pom changes 2014-12-29 14:22:54 -08:00
m00nlight
e97c36084b Add gitignore to ignore all mercurial related files and hgignore all git related files 2014-12-29 11:33:08 +08:00
m00nlight
ac302d3125 Add hgignore for programmer prefer mercurial DRCS 2014-12-29 11:16:39 +08:00
Phil Hagelberg
1f324dad13 Merge pull request #1786 from jafingerhut/master
Correct relative priority of profiles.clj and project.clj in Merging doc...
2014-12-15 20:55:41 -08:00
Andy Fingerhut
b4602d4a4b Correct relative priority of profiles.clj and project.clj in Merging docs 2014-12-15 20:32:04 -08:00
Phil Hagelberg
bebce21441 Use main/abort instead of throwing exception in clean. 2014-12-05 09:25:22 -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
Phil Hagelberg
1296288b59 Merge pull request #1776 from jcrossley3/1721
A more efficient alternative fix for #1721
2014-12-05 08:55:07 -08:00
Jim Crossley
0e20baf378 Account for absolute target paths 2014-12-03 14:31:17 -05:00
Jim Crossley
1cff1b8498 An alternative fix for #1721 to clean all profile paths
If we detect a format specifier in the raw :target-path, e.g. a percent
sign, we adjust the :target-path in the project to be cleaned to reflect
the parent directory of the spliced profile.

Thus we avoid activating every single profile for the project,
potentially activating resource-intensive middleware, just to delete a
directory.
2014-12-03 09:23:19 -05:00
Jim Crossley
d3297be9da Add test for cleaning spliced target path 2014-12-03 09:16:43 -05:00
Jean Niklas L'orange
fade5c25d3 Merge branch 'improve-write-permissions'. 2014-12-02 13:40:08 +01:00
Jean Niklas L'orange
fda96ddbbc Check write permissions in lein jvm, fixes #1775.
This doesn't check the legacy repl port file, presumably that's okay as
it's... well, legacy.
2014-12-02 13:34:35 +01: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
Jean Niklas L'orange
6ed53ab6a7 Add :pass-through-help documentation.
[ci skip]
2014-11-26 23:35:55 +01:00
Jean Niklas L'orange
a8093da794 Merge pull request #1770 from cakebaker/fix_new_doc
Remove reference to "lein help new"
2014-11-25 17:08:21 +01:00
Daniel Hofstetter
1c9b9b09fb Remove reference to "lein help new" 2014-11-25 16:14:34 +01:00
Jean Niklas L'orange
e2a410487f Merge pull request #1766 from ernestas/check-for-write-permissions
Check write permissions before writing .nrepl-port
2014-11-22 15:06:28 +01:00
Jean Niklas L'orange
bc88241f4f Merge pull request #1767 from danielcompton/patch-1
Clarify .lein-classpath usage with plugin deps
2014-11-22 14:56:53 +01:00
Daniel Compton
2ef2fb48a9 Correct classpath separator config 2014-11-22 12:13:47 +13:00
Daniel Compton
1f2a71b78c with->on 2014-11-22 11:30:44 +13:00
Daniel Compton
2399b7a45c Clarify .lein-classpath usage with plugin deps
Explain that plugin dependencies need to be added to .lein-classpath if they are being edited too.
2014-11-22 11:28:56 +13:00
Ernestas Lisauskas
5c7df14a1c Check write permissions before writing .nrepl-port
Fixes #1664
2014-11-21 22:23:45 +00:00
Jean Niklas L'orange
8bce4ad1db Merge pull request #1747 from technomancy/check-for-permissions-in-lein-jar-1724
Ensure proper access rights in `lein jar`
2014-11-21 19:47:32 +01:00
Phil Hagelberg
be6b511e76 Mention pom XML still needs to validate. 2014-11-15 09:55:11 -08:00
Sebastian Hennebrueder
8ebeed1f27 Check if project data is available where needed for deploy tasks 2014-11-15 09:54:43 -08:00
Phil Hagelberg
3a5120854c Merge pull request #1755 from fgiasson/master
Fix an issue when deploying project to Clojars.
2014-11-05 11:42:29 -08:00
Frederick Giasson
39edad157d Fix an issue when deploying project to Clojars.
In some setup, people are adding their GitHub usernames in the URL of the repo such that they don't have to provide their usernames when commiting to GitHub, just their password.

This was an issue with Leiningen since it was ignored and the POM file's <scm> section was not properly generated which leaded to a missing GitHub link on their Clojars project page.

The change in the regex of parse-github-url follows two rules of the GitHub username creation:

  (1) alpha-numeric and underscores only
  (2) minimum two characters
2014-11-05 14:25:03 -05:00
Phil Hagelberg
bf61af296f Merge pull request #1745 from jebberjeb/clean-everything
remove clean targets for all profiles
2014-10-30 10:26:07 -07: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
Phil Hagelberg
265d176cea Merge pull request #1742 from hugoduncan/fix-classified-jars
Fix jar task for :classifiers
2014-10-25 21:54:04 -07:00
Jeb Beich
d053f3add4 remove clean targets for all profiles 2014-10-25 22:06:44 -05:00
Hugo Duncan
942cbee34a Fix jar task for :classifiers
The classified jar files were not being generated due to incorrect
arguments in code.
2014-10-24 21:08:55 -04:00
Phil Hagelberg
e6d5b2a80c Merge pull request #1741 from jcrossley3/1740
Don't change order of included profiles; fixes #1740
2014-10-24 13:16:44 -07: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
5faada954a Check :manifest before using default :main.
Fixes #1736 and probably #1710.
2014-10-23 15:14:55 -07:00
Phil Hagelberg
e7a33e7d1c Bump stencil to 0.3.5.
Fixes #1739 and #1563.
2014-10-23 14:41:11 -07:00
Phil Hagelberg
0f71e1b645 Expose version-satisfies?. Shouldn't be internal. 2014-10-23 14:41:07 -07:00
Alan Malloy
7cbd5bfa7d Another silly flatten that could be a mapcat 2014-10-22 17:47:56 -07:00
Alan Malloy
77879b2d9e Got rid of silly uses of apply and flatten 2014-10-22 17:22:52 -07:00
Phil Hagelberg
962bc7fdba Merge pull request #1737 from jakebasile/update-test-help
Updated help text for `test`
2014-10-22 09:10:27 -07:00
Jake Basile
8cd298ce33
Updated help text for test 2014-10-22 10:17:24 -05:00
Jean Niklas L'orange
aabdba95e0 Merge pull request #1735 from martinklepsch/clarify-gpg-override
make placement of :signing key clearer
2014-10-20 14:18:33 +02:00
Martin Klepsch
b121da80b4 make it clearer that the :signing key is first-level 2014-10-20 14:13:41 +02: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