Commit graph

3703 commits

Author SHA1 Message Date
Phil Hagelberg
0b9bf383c2 Implement :release-tasks. 2014-05-23 22:27:06 -07:00
Phil Hagelberg
1a02131b1b Change increment-version to add snapshots where appropriate. 2014-05-23 21:23:08 -07:00
Phil Hagelberg
3f4b2df764 Catch qualifier in version-map->string. 2014-05-23 21:16:34 -07:00
Phil Hagelberg
f503282c5c Fix assert-uncommitted. 2014-05-23 21:05:07 -07:00
Phil Hagelberg
ec45757459 Automatically load methods for other leiningen.vcs systems. 2014-05-23 20:59:34 -07:00
Phil Hagelberg
47dc18aafa Add assert-committed method to leiningen.vcs. 2014-05-23 20:59:33 -07:00
Chris Truter
a10fbc569e Follow separator convention, reorganise, and add some comments 2014-05-24 05:05:23 +02:00
Chris Truter
c071b8bd37 Improve interface for changing project settings 2014-05-24 04:57:26 +02:00
Chris Truter
cca167c19c Experiment with generic conventions
1. Look up functions based on "run-*" pattern
2. Support consistent argument passing scheme
3. Crude bump-version task
4. Some refactoring

Not great at structuring Clojure code, so open to tips to organise
this namespace better!
2014-05-24 04:12:46 +02:00
Chris Truter
fff11d4fcc Set project version via sjacket 2014-05-24 02:44:09 +02:00
Phil Hagelberg
1651cb067b Merge pull request #1526 from ardumont/add-toc-to-tutorial
Add TOC to the tutorial
2014-05-23 11:16:03 -07:00
Antoine R. Dumont
7b151b262d Add TOC to the tutorial 2014-05-23 19:25:19 +02:00
Phil Hagelberg
805cb61a55 Merge pull request #1524 from petergarbers/handle-duplicate-keys-in-defproject
defproject throws an exception on duplicate keys
2014-05-22 17:25:04 -07:00
Peter Garbers
d214fe99a8 Lists duplicate keys in exception thrown 2014-05-23 00:52:41 +02:00
Peter Garbers
98d113374f defproject throws an exception on duplicate keys 2014-05-22 02:49:01 +02:00
Wayne
a8a1f5bd99 Clean up semver string parsing.
Signed-off-by: Wayne <wayne@puppetlabs.com>
2014-05-19 22:17:49 -07:00
Wayne
7cae821956 Fix up version parsing code.
Now with working tests!

Signed-off-by: Wayne <wayne@puppetlabs.com>
2014-05-19 22:17:42 -07:00
Wayne
88aa1ac009 Remove SCM protocol stub. 2014-05-16 13:59:20 -07:00
Wayne
63a90d6dc3 Fix version-map->string and associated test.
Adds a member to each testcase vector that represents the original version
string minus the quantifier, or just the original version string itself in the
case of the version string being an invalid maven version.

Signed-off-by: Wayne <wayne@puppetlabs.com>
2014-05-16 13:57:55 -07:00
Wayne
18cae29409 Add test for version-map->string
Signed-off-by: Wayne <wayne@puppetlabs.com>
2014-05-16 11:01:08 -07:00
Wayne
680629304e Remove some unnecessary code.
Signed-off-by: Wayne <wayne@puppetlabs.com>
2014-05-16 11:01:08 -07:00
Wayne
d601b6140f Begin working on leiningen.release.
parse-maven-version is a modified copy of the same function found in
relaynetwork/lein-release. Also began working on unit tests.

Signed-off-by: Wayne <wayne@puppetlabs.com>
2014-05-16 11:01:08 -07:00
Phil Hagelberg
051ec98f10 Add vcs task with subtasks. 2014-05-16 10:12:47 -07:00
Alan Malloy
daebdd79d3 Update raw.github.com links
Should be raw.githubusercontent.com now.
2014-05-05 13:54:54 -07:00
Phil Hagelberg
4776eeb8e0 Add auto-clean to deploy task. Fixes #1512. 2014-05-01 15:49:46 -07:00
Jean Niklas L'orange
7cd81ed78c Update bootstrap instructions, ref #1515. 2014-04-28 02:49:58 +02:00
Andy Chambers
ef51985d58 Pick up a 'WARNING' that got missed 2014-04-26 18:58:21 -04:00
Andy Chambers
1ffbb408db Use warn instead of info where applicable 2014-04-26 17:17:56 -04:00
Phil Hagelberg
4db84a0423 Merge pull request #1513 from cmpitg/better-documentation
Add structure of the newly created sample template
2014-04-24 13:43:41 -07:00
Phil Hagelberg
23b0804f67 Add ^:replace metadata to :aot [:all] normalization. 2014-04-24 13:30:47 -07:00
Phil Hagelberg
f887bedc15 Check for :aot [:all] in jar task too. 2014-04-24 11:27:10 -07:00
Jean Niklas L'orange
64b142f480 Recommend -- before template args, ref #1511
Whenever passing arguments the template used in `lein new`, recommend
people to use `--` to separate their arguments to lein new and the
template itself.

[ci skip]
2014-04-24 20:08:01 +02:00
Phil Hagelberg
927ad0fd8c Use clojure.main for uberjars that don't declare their own :main.
Fixes #1505.
2014-04-24 09:51:56 -07:00
Phil Hagelberg
785301257c Clarify that the default template is intended for libraries.
Addresses #1505.
2014-04-24 09:50:38 -07:00
Phil Hagelberg
fd141dfecb Check user profile's plugin-repositories when looking for templates.
Fixes #1510.
2014-04-24 09:46:11 -07:00
Phil Hagelberg
e88ecd4c92 Merge pull request #1509 from jakubholynet/patch-2
PROFILES.md: Tip to use composite profile
2014-04-24 09:24:33 -07:00
Nguyễn Hà Dương
e6abef4b0e Add structure of the newly created sample template
I think it might be better to provide a quick look at the new template structure before going to any detail?
2014-04-24 15:28:16 +07:00
Jakub Holy
0d7932f994 PROFILES.md: Tip to use composite profile
Sometimes we need to override *parts* of a prticular profile on a project-specific base. To a novice
lein user, it is likely not clear how to achieve this. This tip points her in the right direction -
using a composite profile with a "personal" part that can be overriden in `profiles.clj` to change
what is in the "common" part of the profile.
2014-04-24 08:27:15 +02:00
Phil Hagelberg
08b0dcb64b Catch and print query parsing exceptions in search task. Fixes #1507. 2014-04-23 17:18:49 -07:00
Phil Hagelberg
d0b223ad4e Catch exceptions updating indices in lein search. Fixes #1508. 2014-04-23 17:12:32 -07:00
Phil Hagelberg
f5305ab47b Merge :plugin-repositories into :repositories before loading plugins. 2014-04-23 09:18:38 -07:00
Jean Niklas L'orange
c9f64ea0b9 Merge pull request #1506 from jakubholynet/patch-1
PROFILES.md - be really explicit about overriding
2014-04-23 14:25:23 +02:00
Jakub Holy
3fe00b2578 Update PROFILES.md 2014-04-23 13:27:04 +02:00
Jakub Holy
5abe5718bc PROFILES.md - be really explicit about overriding
While "Declaring Profiles" states that "Profiles specified in `profiles.clj` will override
profiles in `project.clj`," some less attentive reader can interpret it so that *keys/values* from profiles.clj override those from project.clj, not that the profile as whole is replaced. This changes
tries to make it really clear. (Of course feel free to change the wording as you see fit.)
2014-04-23 10:28:30 +02:00
Phil Hagelberg
e3820d0f9b Merge pull request #1504 from jcrossley3/1498
Prevent NPE when pedantic encounters dupe top-level deps to fix #1498
2014-04-22 18:08:37 -07:00
Jim Crossley
d1ed9f83fe Prevent NPE when pedantic encounters dupe top-level deps to fix #1498 2014-04-22 20:10:32 -04:00
Phil Hagelberg
4f0baf237a Check for key not found message from gpg 2.x as well.
Fixes #1462.
2014-04-22 17:02:58 -07:00
Phil Hagelberg
4349878d7c Remove mention of :omit-default-repositories.
Fixes #1472.
2014-04-22 17:01:01 -07:00
Phil Hagelberg
07a1ecaa93 Normalize :aot :all to :aot [:all].
This fixes type mismatch issues when merging profiles.

Fixes #1488.
2014-04-22 16:41:50 -07:00
Phil Hagelberg
f4b0bf6ec9 Fix weird de-duping behaviour in pom.
It used to be we would merge a bunch of profiles into the project, and
then trim out dupes based on group/artifact/version, which was totally
wrong; it ignores classifiers and extensions.
2014-04-22 16:24:10 -07:00