Commit graph

847 commits

Author SHA1 Message Date
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
Phil Hagelberg
c12f9df081 Allow profiles to be loaded out of plugins.
Still needs testing.

Fixes #1672.
2014-09-02 18:52:35 -07:00
Hugo Duncan
fe1be7d2dc Apply profiles from middleware in main
When loading the project, ensure that profiles contributed by middleware
are correctly applied.
2014-09-01 07:29:23 -04:00
Hugo Duncan
7b8c1521ff Add a :project profile
The :project profile is not un-merged when building a jar or generating
a pom, so can be used to alter the basic layout of a project.

This allows plugins such as cljx and cljsbuild to provide profiles that
the project can choose to use to set source-paths, etc, leading to less
error-prone configuration in common use cases.

Fixes #1665
2014-09-01 07:03:58 -04:00
Phil Hagelberg
2803647bc4 Move :pedantic setting to default map; displace it.
Fixes #1653.
2014-08-21 10:54:19 -07:00
Nelson Morris
fc6cb17002 Bump pedantic version
I've redone some of the internals of the pedantic library, so it should
be more efficent and has better documentation.

Fixes #1491
2014-08-16 18:01:40 -05:00
Jean Niklas L'orange
d3304f6ea4 Don't read git files if they are unreadable.
Also print warnings if the file is not readable. Fixes #1585.
2014-08-09 01:42:09 +02:00
Phil Hagelberg
6d79dcfedc Bump version number up to 2.4.4-SNAPSHOT. 2014-08-05 16:21:34 -07:00
Phil Hagelberg
983847276d Release 2.4.3 2014-08-05 16:03:18 -07:00
Phil Hagelberg
8b9d66cd7c Allow implicit hooks/middleware to be disabled.
Fixes #1621.
2014-08-05 15:35:00 -07:00
Manfred Moser
e0ad0db0d6 switching to https for the central repo 2014-08-01 16:12:51 -07:00
Hugo Duncan
eaffda3082 Add LEIN_NO_USER_PROFILES to avoid user profiles
When set, this environment var will prevent user level profiles from
loading.
2014-08-01 11:18:43 -04:00
Roger Allen
80f1418110 Fix for issue 1607
Instead of always using a regex to try to match the native-names keys
when doing a get-os or get-arch call, use a get-with-pattern-fallback
function to first try the exact match and only if that fails, use
get-by-pattern.  This prevents matching "x86_64" with "x86" when
"x86_64" is the better match.
2014-07-21 22:52:33 -07:00
Gary Fredericks
94601082e4 Fix the test that's been failing on Travis
The problem was something to do with the project map being too
bare. Switching to `defproject` fixes it.
2014-07-07 13:28:43 -05:00
Phil Hagelberg
8b98d68cdd Default to warning when version ranges are present.
Fixes #1374.
2014-07-04 10:51:24 -07:00
Phil Hagelberg
0621161473 Merge pull request #1584 from MichaelBlume/report-bad-filename
when opening a JarFile, report name of file in any errors
2014-07-02 22:15:51 -07:00
Mike Blume
71e5e95e13 when opening a JarFile, report name of file in any errors
java.util.JarFile. can fail without reporting the name of the file it's
operating on. If you have a jarfile that isn't a valid zip, this can be
confusing.
2014-07-02 16:15:19 -07:00
Phil Hagelberg
3e6d3876ad Better message when task ns exists, but not task function. Fixes #1299. 2014-06-17 13:19:27 -07:00
Phil Hagelberg
4b6eb01cf1 Fix LEIN_FAST_TRAMPOLINE path. Fixes #1562. 2014-06-16 13:05:27 -07:00
Phil Hagelberg
e6b620cabe Fix bad eval test. 2014-06-15 17:24:55 -07:00
Phil Hagelberg
e738fec65c Bump version to 2.4.3-SNAPSHOT. 2014-06-15 17:24:48 -07:00
Phil Hagelberg
f73a9998ff Release 2.4.2 2014-06-15 17:14:10 -07:00
Phil Hagelberg
efc00172b7 Fix leiningen.core.ssl lazy-load. 2014-06-15 17:06:07 -07:00
Phil Hagelberg
b74910600b Fix write-pom-properties to work when outside project dir. 2014-06-15 17:05:13 -07:00
Phil Hagelberg
10d3b098ed Bump version to 2.4.2-SNAPSHOT. 2014-06-15 17:03:58 -07:00
Phil Hagelberg
3f9ecd6cb7 Release 2.4.1 2014-06-15 16:48:22 -07:00
Phil Hagelberg
d1a634fc4e Move make-project-properties to leiningen.core.project. 2014-06-15 16:43:36 -07:00
Phil Hagelberg
12ec7b9200 Write pom.properties in :prep-tasks, not during jar creation. 2014-06-13 16:09:36 -07:00
Phil Hagelberg
b9298323cc Put a newline in between META-INF/services/ entries.
Refs #1561.
2014-06-13 15:44:52 -07:00
Phil Hagelberg
392db32003 Don't load clojars cert in default project map. 2014-06-13 12:16:33 -07:00
Phil Hagelberg
f937116912 Update bundled clojars.pem.
Extracted with: openssl s_client -connect clojars.org:443
2014-06-13 12:14:37 -07:00
Phil Hagelberg
03bd2ee154 Lazy-load leiningen.core.ssl. 2014-06-13 12:14:37 -07:00
Gary Fredericks
04ef2fc621 correct Unnecessary capitalization 2014-06-12 22:45:17 -05:00
Phil Hagelberg
cf488b3edf Merge pull request #1556 from gfredericks/issue-1555
[DO NOT MERGE] Add regression test for #1555
2014-06-11 11:17:47 -07:00
Gary Fredericks
e5351155bf Add regression test for #1555 2014-06-11 12:58:42 -05:00
Phil Hagelberg
da2e50042f Don't meta-merge a project into itself.
Should fix #1555.
2014-06-10 12:13:38 -07:00
Phil Hagelberg
e5a994ab6e Bump to 2.4.1-SNAPSHOT. 2014-06-09 16:33:24 -07:00
Phil Hagelberg
dfaa2dfe43 Release 2.4.0 2014-06-09 16:17:48 -07:00
Phil Hagelberg
213e20ba20 Fix release task to use resolve-and-apply as its entry point.
This should be used by all tasks that try to run other tasks as if
they were invoked directly, which really isn't clear at all.
2014-06-08 15:15:45 -07:00
Phil Hagelberg
f8711c48e3 Fix splicing for partial aliases. 2014-06-08 15:12:29 -07:00
Phil Hagelberg
2fbec2be5e Allow project values to be spliced into alias invocations. 2014-06-08 12:48:58 -07:00
Phil Hagelberg
353d73912c Allow for plugins to override built-in tasks. 2014-06-05 12:08:06 -07:00
Phil Hagelberg
d8634b2272 Pass a stringed symbol into bump-version instead of a keyword. 2014-05-27 16:37:59 -07:00
Phil Hagelberg
b3f3537386 Avoid need for double-escaping in :release-tasks.
As per the recommendation of @crisptrutski.
2014-05-27 15:05:00 -07:00
Phil Hagelberg
b1a07d03ec Pass arguments to f in change task through the reader.
This means that you can use non-strings as args in the change task,
but it requires double-quoting when you do want strings.
2014-05-27 11:46:15 -07:00
Phil Hagelberg
88f2d3458e Reword a few things in deploy.md. 2014-05-27 10:46:37 -07:00