Commit graph

4461 commits

Author SHA1 Message Date
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
Hugo Duncan
8389a0b928 Fix pom with non-default :default profile
Unmerge expanded its profiles based on the profiles in the project
map (which don't include :default), rather than profiles in the
:profiles metadata.

The :default keys were also hard coded in the pom generation, so ignored
any additions.

This is in support of https://github.com/lynaghk/cljx/pull/48
2014-08-30 16:56:07 -04:00
Phil Hagelberg
d5d44a6f7e Merge pull request #1626 from tihancock/unique-file-per-namespace
Ensure that there are not multiple source files for a namespace
2014-08-23 17:28:13 -07:00
Tom Hancock
60e3ae3c66 Prioritise compilation of namespaces backed by files 2014-08-22 21:10:43 +01:00
Jean Niklas L'orange
554861505c Merge pull request #1659 from winks/issue-1518-https
Allow https links for drawbridge integration
2014-08-22 22:05:29 +02:00
Florian Anderiasch
8fa694d68d Allow https links for drawbridge integration 2014-08-22 20:57:02 +02:00
Phil Hagelberg
9df08bac93 Merge pull request #1651 from winks/issue-1518
Allow 'repl :connect' to read args from file
2014-08-22 09:50:03 -07:00
Florian Anderiasch
2a2adb2aad Allow 'repl :connect' to read args from file
This basically works like in curl, you specify @filename and then the
contents of the file are literally used as if written on the CLI.

@TODO this will not work:
lein repl :connect @./some/file
because there is no realpath resolution
but this works:
lein repl :connect @/full/path
and this as well:
lein repl :connect @some/file
2014-08-22 18:06:23 +02:00
Phil Hagelberg
2803647bc4 Move :pedantic setting to default map; displace it.
Fixes #1653.
2014-08-21 10:54:19 -07:00
Phil Hagelberg
ad65195f40 Add lein deps :implicits subtask. 2014-08-21 10:22:47 -07:00
Phil Hagelberg
004f8a24a6 Merge pull request #1649 from MarcoPolo/sequential-fix-in-relativize
seq? -> sequential? to be able to handle vectors in pom/relativize
2014-08-20 20:14:27 -07:00
Marco Munizaga
90c13d91fe seq? -> sequential? to be able to handle vectors in pom/relativize
The current implementation would break if a middleware plugin emitted a vector for any of the keys in L20 .

It wraps the output in a vec, so it's reasonable to assume it could take a vec as well.
2014-08-18 22:42:35 -07:00
Jean Niklas L'orange
be909c8f45 Check if mktemp is available before using it.
Fixes #1514.
2014-08-18 20:52:57 +02:00
Jean Niklas L'orange
c5568e8ccf Merge pull request #1648 from jgdavey/zsh
Zsh completion
2014-08-18 20:36:15 +02:00
Joshua Davey
2f25510edc Check if in a lein project before ns completion 2014-08-18 13:26:53 -05:00
Joshua Davey
8c990e535a Fix up namespace completion
* Complete even when test dir is missing
* Remove trailing parentheses
* Use only one invocation of awk
2014-08-18 11:20:52 -05:00
Joshua Davey
3ff6a1fe96 Update zsh tasks from latest leiningen release 2014-08-18 10:55:31 -05:00
Jean Niklas L'orange
b9dced16d5 Clarify what "last one" means for profile override
Re: #1646
[ci-skip]
2014-08-17 23:43:14 +02: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
Phil Hagelberg
77e35035fb Merge pull request #1640 from phalphalak/separate-control-flow-from-version-parsing
Extract version parsing function out of parse-semantic-version.
2014-08-14 15:03:36 -07:00
Roman Flammer
9920681736 Extract version parsing function out of parse-semantic-version.
Enables parsing of the semantic version without triggering an abort
in case of a parse failure.

Fix typo.
2014-08-13 14:06:31 +02:00
Jean Niklas L'orange
651370487d Fix grammar and print exit code from http client. 2014-08-11 09:59:04 +02:00
Phil Hagelberg
26dd8c2074 That was terrible advice. 2014-08-09 22:17:31 -07:00
Phil Hagelberg
9750d8e4b2 Document using unquote in :dev profile for OS-specific config.
Addresses #1228.
2014-08-09 11:41:23 -07: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
Jean Niklas L'orange
8498d8bc4b Preserve metadata during clj->sjacket conversions. 2014-08-08 21:12:08 +02:00
Jean Niklas L'orange
da57eb0440 Use pr-str for clj/sjacket roundtrip. Fixes #1632. 2014-08-08 21:03:28 +02:00
Phil Hagelberg
2a3fe249c0 Merge pull request #1628 from paxan/patch-1
How to opt out from "Main-Class: clojure.main"
2014-08-06 19:29:59 -07:00
Pavel Repin
0f59054497 How to opt out from "Main-Class: clojure.main" 2014-08-06 19:26:00 -07:00
Colin Jones
b9e51a02e0 Bump reply version for drawbridge->nrepl exclusion
refs #1625
2014-08-06 09:32:25 -05: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
2028cd7951 Revert "Check that exactly one (existing) source file is found per namespace when compiling"
This reverts commit c2cc916dc6.
2014-08-05 16:02:02 -07:00
Phil Hagelberg
75279fed98 News for 2.4.3. 2014-08-05 15:58:57 -07:00
Phil Hagelberg
8b9d66cd7c Allow implicit hooks/middleware to be disabled.
Fixes #1621.
2014-08-05 15:35:00 -07:00
Colin Jones
828a5875d8 Bump REPLy for "standalone" (non-nREPL) bugfixes
This also gets us the official sjacket dependency and the Java / Clojure
versions printed in the startup help screen.

https://github.com/trptcolin/reply/compare/0.3.1...0.3.2
2014-08-05 00:40:36 -05:00
Phil Hagelberg
6bd1db2850 Only apply #1569 fix to :base profile. 2014-08-04 17:37:00 -07:00
Phil Hagelberg
7b722e8288 Merge pull request #1613 from pjlegato/print-compile-errors
Print compile error stacktraces as they occur
2014-08-04 13:58:45 -07:00
Phil Hagelberg
e95a167c1b Make base profile's deps defer to raw :dependencies in pom.
Fixes #1569.
2014-08-04 13:36:23 -07:00
Phil Hagelberg
0c9be93a3c Failing test for #1569. 2014-08-04 13:35:16 -07:00
Phil Hagelberg
8d6cda1dbf Merge pull request #1618 from mosabua/securecentral
Switching to https for the central repo
2014-08-01 16:44:55 -07:00
Manfred Moser
e0ad0db0d6 switching to https for the central repo 2014-08-01 16:12:51 -07:00
Phil Hagelberg
5e25111bf9 Merge pull request #1616 from hugoduncan/feature/add-no-user-profiles
Add LEIN_NO_USER_PROFILES to avoid user profiles
2014-08-01 09:17:55 -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
Paul Legato
22b99cc9fd Print compile error stacktraces as they occur 2014-07-29 15:47:42 -07:00
Phil Hagelberg
798873d467 Merge pull request #1611 from techwhizbang/master
read-eval example provided in PROFILES.md
2014-07-24 13:25:04 -07:00
Nick Zalabak
60e4ef856c read-eval example provided in PROFILES.md 2014-07-24 12:24:30 -07:00
Jean Niklas L'orange
d6b90a0315 Merge pull request #1609 from rogerallen/issue1607
Fix for issue 1607
2014-07-22 09:16:15 +02: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
Phil Hagelberg
503495b6fc Don't depend on unsigned jakarta-regexp lib.
Refs #1608.
2014-07-21 12:00:16 -07:00