Commit graph

4502 commits

Author SHA1 Message Date
Nicolas Berger
5f6a08533f Infer default values from .git/config for :scm :git
Previous when :scm :git was used only the values defined in the :scm
map of the project were used so values not defined there were left blank.
This way it was common to end having an scm node in the pom.xml without
a <tag> node, resulting in the dreaded "with this commit" in clojars
pointing to HEAD instead of pointing to the commit that originated the
release.

Now when :scm :git is used, default values for the :scm node are inferred
from .git/config as if "auto" was used, with the difference that any
value defined under :scm in the project takes precedence over those
inferred defaults. This applies to :url, :connection, :developerConnection
and :tag
2017-09-19 00:38:17 -03:00
Nicolas Berger
1937e561d2 Pom: refactor write-scm-tag and make-git-scm
Makes it to return plain maps for all values of :scm to use xmlify and
xml-tags in all cases. Apart from easier to read code, it will make it
easy to implement merging values from git and from project map when
(= "git" scm)
2017-09-19 00:33:06 -03:00
Phil Hagelberg
b2c4c5a782 Release 2.8.0-RC1 2017-09-18 15:45:42 -07:00
Phil Hagelberg
267e16ab1f Prepare for 2.8.0-RC1. 2017-09-18 15:43:27 -07:00
Phil Hagelberg
1cebb9a93b Add a comment explaining that the test task is a legacy monkeypatch.
[skip ci]
2017-09-18 10:19:49 -07:00
Phil Hagelberg
b939b3a5ca Merge pull request #2313 from irinarenteria/static_help_fix
Remove doctoc comments from static help text
2017-09-17 11:57:57 -07:00
irinarenteria
319d907a61 Check presence of substring using includes 2017-09-17 09:54:54 -05:00
irinarenteria
7929c38285 Add private function that removes doctoc comments 2017-09-15 21:25:40 -05:00
Phil Hagelberg
eaca364caa Mention cgroups jvm options in FAQ.
This should be helpful for people who run into trouble from using too
old of a JVM, to encourage them to upgrade.
2017-09-15 15:11:54 -07:00
Phil Hagelberg
45f4365000 Remove docs for making plugins work with lein 1.x.
[skip ci]
2017-09-14 12:09:38 -07:00
Phil Hagelberg
7a56c0a2aa Deprecate project middleware, hooks, and the :test profile.
[skip ci]
2017-09-14 12:09:18 -07:00
Phil Hagelberg
48f99a2193 Merge pull request #2312 from technomancy/vcs-commit-override-message
Allow overriding commit message
2017-09-11 17:47:22 -07:00
Toby Crawley
6606a910ab
Allow overriding commit message
This gives the user control over the commit message when overriding the
default :release-tasks.

See #2308
2017-09-11 19:02:44 -04:00
Phil Hagelberg
ab51aaad88 Merge pull request #2306 from glts/typehint-run-form
Type-hint leiningen.run/run-form and print metadata in eval file
2017-09-11 13:57:15 -07:00
Phil Hagelberg
05395e5fb2 Add :query subcommand to deps task. 2017-09-07 10:15:11 -07:00
David Bürgin
28ef899fb1 Type-hint and print metadata of form used by run task 2017-09-01 19:03:58 +02:00
Phil Hagelberg
ce971e504a Oops; into does not take varargs. 2017-08-28 12:02:33 -07:00
Phil Hagelberg
9c34b6c3b5 Don't enable cgroups memory flags on older JVMs. 2017-08-25 16:40:59 -07:00
Phil Hagelberg
933015ee08 Default to getting JVM memory limit from cgroups.
Fixes #2304.
2017-08-25 14:47:08 -07:00
Neil Okamoto
8eff187bbf expand test coverage to confirm signing args for multiple gpg versions 2017-08-24 23:28:35 -07:00
Neil Okamoto
e0feb2a633 gpg unattended signing args must be specific to gpg version 2017-08-24 22:57:38 -07:00
Neil Okamoto
9010b65b27 update documentation for unattended gpg 2017-08-24 15:05:13 -07:00
Neil Okamoto
ec921f141e allow GPG to be invoked unattended with passphrase (+2 squashed commits)
Squashed commits:
[81bda1b] allow GPG to be invoked unattended with passphrase
[ef54597] allow GPG to be invoked unattended with passphrase
2017-08-24 13:15:21 -07:00
Phil Hagelberg
98250defe3 Update some documentation. 2017-08-18 15:16:19 -07:00
Phil Hagelberg
2785969f1f Deploy checksums for signatures.
Somehow when upgrading pomegranate this became turned off by default?

Fixes #2303.
2017-08-18 15:16:11 -07:00
Phil Hagelberg
5f5afbfa0a Merge pull request #2300 from technomancy/s3p-workaround
Work around bug in aether/s3-wagon-private which hides :passphrase.
2017-08-17 16:36:51 -07:00
Phil Hagelberg
97dceab628 Work around bug in aether/s3-wagon-private which hides :passphrase.
Fixes #2278.
2017-08-16 16:17:59 -07:00
Phil Hagelberg
5234263d9d Update Maven Central mirror URL.
Fixes #2299.
2017-08-16 15:04:39 -07:00
Jean Niklas L'orange
b34d226f56 Merge pull request #2297 from ehashman/man
Update manpage
2017-08-11 21:47:33 +02:00
Elana Hashman
10aaf97056 Also add CLI options 2017-08-10 18:35:25 -04:00
Elana Hashman
a8df87b933 Freshen up formatting and add some missing tasks 2017-08-10 18:07:09 -04:00
Elana Hashman
8ef2d659e7 Update copyright year 2017-08-10 18:04:32 -04:00
Elana Hashman
acd343d2a0 Add missing closing square bracket 2017-08-10 18:04:26 -04:00
Jean Niklas L'orange
f63d494f84 Merge pull request #2294 from cbcoutinho/master
Correct typo in README.md
2017-08-05 16:21:07 +02:00
Jean Niklas L'orange
aa8f0e6ee7 Merge pull request #2295 from kingpong/suppress-boxed-math-warning
Prevent boxed math warnings in `lein test`
2017-08-05 16:20:26 +02:00
Philip Garrett
2aee571127 Prevent boxed math warnings in lein test
This change prevents `lein test` from generating mysterious boxed math
warnings like the following when *unchecked-math* is :warn-on-boxed in
the :test profile:

    % lein test
    Boxed math warning, /private/var/folders/g8/bx1hjysj0zz4zr8ljghr4b0m0000gn/T/form-init2325898126244193444.clj:1:11129 - call: public static java.lang.Number clojure.lang.Numbers.unchecked_add(java.lang.Object,java.lang.Object).
    Boxed math warning, /private/var/folders/g8/bx1hjysj0zz4zr8ljghr4b0m0000gn/T/form-init2325898126244193444.clj:1:11208 - call: public static java.lang.Number clojure.lang.Numbers.unchecked_add(java.lang.Object,java.lang.Object).

    lein test myapp.core

    Ran 12 tests containing 49 assertions.
    0 failures, 0 errors.
2017-08-04 14:36:24 -04:00
Chris Coutinho
60271d302c Correct typo in README.md 2017-08-04 14:53:42 +02:00
Phil Hagelberg
4676ed82d1 Merge pull request #2293 from glts/gpg-return-out-and-err
Return consistent result from leiningen.core.user/gpg
2017-07-30 15:14:10 -07:00
David Bürgin
6dc5fb48d0 Return consistent result from leiningen.core.user/gpg
Fix #2236: leiningen.core.user/gpg map returned is inconsistent
2017-07-29 20:07:27 +02:00
Jean Niklas L'orange
0edda36f63 Merge branch 'pr/2291' 2017-07-29 13:15:14 +02:00
Jean Niklas L'orange
b0eeff40fb Document how to read project.clj at runtime 2017-07-29 13:15:05 +02:00
Jean Niklas L'orange
aa202c6fc9 Merge pull request #2289 from glts/trim-git-head
Trim whitespace in Git HEAD commit hash
2017-07-21 17:48:33 +02:00
David Bürgin
3679ba2649 Do not include project.clj in JAR root
Reverts commit 0412001cef.
2017-07-21 13:54:01 +02:00
Jean Niklas L'orange
3d87692d24 Merge pull request #2290 from daveliepmann/patch-1
Add base profile note to lein checkouts
2017-07-19 13:18:43 +02:00
Dave Liepmann
0ebf7baabf Fix missing word in example
Fix typo (omitted word) per https://github.com/technomancy/leiningen/pull/2290#discussion_r128134589
2017-07-19 10:46:18 +02:00
Dave Liepmann
65e76ed270 Add base profile note to lein checkouts
Added a note to the **Checkout Dependencies** section reminding users not to override the `base` profile while using checkouts.
2017-07-18 19:04:18 +02:00
David Bürgin
7bd3d1b194 Trim whitespace in Git HEAD commit hash 2017-07-13 23:21:13 +02:00
Phil Hagelberg
afd3dee22a Merge pull request #2285 from montoux/fix-2284-checkouts-recursion
Fix #2284: avoid visiting checkouts we've already seen
2017-06-15 08:23:02 -07:00
Stephen Nelson
6dedc14707 Fix #2284: avoid visiting checkouts we've already seen
Checkouts are recursive by default and the same checkout project may be
reachable via several paths when symlinks are used. Avoid visiting projects
multiple times by keeping track of seen projects while accumulating
checkouts classpath entries.
2017-06-15 15:37:22 +12:00
Phil Hagelberg
52980074e8 Fix loading of reply to handle repo auth correctly. 2017-06-14 14:27:56 -07:00