Commit graph

178 commits

Author SHA1 Message Date
xtreak
78aa9dff43 Bump version of reply and clojure-complete 2018-02-05 06:25:27 +00:00
Phil Hagelberg
dd019deedb Disable warning suppression for tests. 2018-01-22 16:17:31 -08:00
Anton Fonarev
fefe94d124 Added support for :exact-lein-version. 2017-11-06 02:42:17 +03:00
Florian Anderiasch
933f668cd0 Get rid of cgroups special handling in core 2017-10-26 11:26:20 +02:00
Florian Anderiasch
6e84fd270b Fix #2336 - cgroups detection, again 2017-10-24 00:47:01 +02:00
Florian Anderiasch
a425277291 Make UseCGroupMemoryLimitForHeap apply only on Linux 2017-10-21 13:41:03 +02:00
Antony Woods
c447b43cd4 Adjustments per comments from @technomancy
Changed version check to string comparison
2017-10-18 19:40:40 +01:00
Antony Woods
06b26bf1d9 Fix boolean logic in Java version check for cgroups memory limit JVM option 2017-10-18 16:28:44 +01: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
3385971e65 Add tests from pedantic lib as well.
Fix HTTP-using jar test.
2017-05-26 11:32:59 -07:00
Iván Perdomo
ae9ae4825d
[#2272] Use clojure.edn/read-string to read profiles files
Using clojure.edn/read-string results in nil instead of an exception

    user=> (edn/read-string "")
    nil
    user=> (read-string "")
    RuntimeException EOF while reading  clojure.lang.Util.runtimeException (Util.java:221)
2017-05-09 05:58:06 +02:00
James Reeves
1fe6dce707 Change profiles string to recursively normalize
Composite profiles that are made of other composite profiles should be
recursively normalized when creating the target path string.
2017-03-13 22:31:06 +00:00
James Reeves
5a4f9fca0b Change profiles string to match subseqs
Because order of profiles matters, subsequences rather than subsets
should be substituted for composites.
2017-03-03 19:56:15 +00:00
James Reeves
3981ea4971 Make profiles string in target path smarter
When generating a profile scope string for the target path, any subset
of active profiles that matches a composite profile are replaced with
the composite.

For example, the profiles [:base :system :user :provided :dev :foo]
would be represented as "default+foo", because the :default profile is a
composite of [:base :system :user :provided :dev].
2017-03-01 02:56:02 +00:00
Wes Morgan
66cef075e8
Add support for string deps in project.clj
This is needed for rare cases where maven artifact-ids and/or group-ids
aren't valid symbols (e.g. they start with a number).

Test coverage added.
2017-02-01 18:45:34 -07:00
Toby Crawley
21badb1503
Use new clojars repo url
This switches the default repo url (for resolving artifacts, not
deploying) to point to the CDN-fronted repo. Note that this repo won't
work with Java 6 - users of 6 will need to manually override the default
url to point to the old one (https://clojars.org/repo).
2016-11-30 09:32:45 -05:00
Jean Niklas L'orange
abfa7f67ff Allow keyword dependency versions, fixes #2212 2016-09-28 13:32:29 +02:00
Chris Price
41febc332c Merge pull request #2164 from cprice404/feature/master/support-reading-proj-from-reader
Add support for reading project from Reader instead of file
2016-07-18 10:35:01 -07:00
Chris Price
2a30d862f6 Add support for reading project from Reader instead of file
In certain cases (e.g. reading a project.clj file out of a jar,
rather than from a file on disk) it is useful for the `read`
and `read-raw` functions to support being passed a `Reader` object,
rather than a File or path.

This commit modifies the `read-raw` function to support being
passed a Reader.  It also modifies the `defproject` macro to
avoid the assumption that `*file*` will always have a non-nil
value, because that assumption causes an NPE in the case where
a Reader is the source of the project definition.
2016-06-23 09:31:20 -07:00
Chris Price
27782edb2e (#2067) add support for managed-dependencies
This commit provides initial support for `managed-dependencies`,
where dependency version numbers may be specified in a separate
section called `managed-dependencies`, and those version numbers
will be used for any deps in the main `dependencies` section
that do not explicitly specify a version number.

This is a precursor to being able to specify a "parent" project
that could be used to consolidate version numbers of common
dependencies across a large number of libraries.
2016-06-22 11:20:38 -07:00
Stephen Nelson
f1fc34ee00 Fix #2145: extra whitespace added to JVM_OPTS
Instead of using String.split then recombining arguments to repair broken
quoted arguments, this parser now finds entire arguments using regex matching.
This is more robust, handling extra whitespace (and non-space whitespace)
correctly, while also correctly matching quotations in argument strings and
preserving internal spaces.
2016-05-18 17:44:13 +12:00
Jean Niklas L'orange
c630502d18 Code cleanup 2016-02-04 23:32:52 +01:00
Daniel Compton
090e7a114e Upgrade clojure-complete from 0.2.3 to 0.2.4
0.2.4 contains type hints to eliminate reflection warnings.
2016-02-02 07:55:45 +13:00
Jean Niklas L'orange
c6b559ddb5 bump some hidden nrepl deps, ref #2017 2015-11-01 23:57:53 +01:00
James Reeves
1ecbb98ffc Create source, resource and test paths for eval prep
If a directory on the classpath does not exist when the JVM is started,
it's ignored even if it is subsequently created. This commit ensures
that source, resource and test paths exist as part of the prep work for
eval-in-project.
2015-09-04 04:20:32 +01:00
Tim Visher
30fccae5a1 Add eval/sh-with-exit-code
Exactly like `sh` except that it requires a failure message and if the
command exits with a non-0 code, it use the failure message to throw an
Exception.

Added unit tests as well.
2015-09-01 20:51:38 -04:00
Jean Niklas L'orange
7284785a77 Do not include repl deps as test deps, fixes #1771
While it's a good thought to have them as test dependencies, it just
breaks everything if you transitively depend on it.
2015-08-08 16:48:32 +02:00
Yannick Scherer
da574d7b4c add simple test for certificate processing.
Signed-off-by: Jean Niklas L'orange <jeannikl@hypirion.com>
2015-07-26 19:03:38 +02:00
Jean Niklas L'orange
4ab6de9b9c Bump nrepl dependency. 2015-07-09 15:32:01 +02:00
Or Neeman
a1c4cb2d94 Refactor main/drop-partial-args 2015-04-23 12:58:03 -06:00
Jean Niklas L'orange
ff84da6972 Chas isn't wasting time, I can tell you that. 2015-03-24 21:56:17 +01:00
Jean Niklas L'orange
17a32dd510 Merge pull request #1842 from avasenin/read-checkouts
Move read-checkouts to project module and make it public
2015-03-22 01:58:19 +01:00
Jean Niklas L'orange
00e158f6f3 Bump standalone nrepl version as well, ref #1861. 2015-03-21 00:37:46 +01:00
Andrey Vasenin
2b1f06880f Move read-checkouts to project module and make it public 2015-02-24 15:58:37 +06:00
Jean Niklas L'orange
6b8e74eaee Bump nrepl version, fixes #1829. 2015-02-10 20:40:33 +01: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
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
Jim Crossley
59ff0e61bf Don't change order of included profiles; fixes #1740 2014-10-24 16:06:27 -04: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
Jean Niklas L'orange
9e980b0f8a Bump nREPL version to 0.2.6 2014-09-15 01:26:18 +02:00
Hugo Duncan
2da05e6356 Add profile metadata
Adds :leaky and :pom-scope metadata for profiles.  The :dev, :test,
:base and :provided profiles are implemented in terms of these.

Profiles with :leaky metadata affect the pom and jar creation.

Profiles with a :pom-scope metadata of :test or :provided also affect
the dependencies of a pom.
2014-09-09 13:27:49 -04:00
Jean Niklas L'orange
400ad40c44 Test higher order aliases. 2014-09-09 02:13:26 +02:00
Colin Jones
6fb558ad19 Bump nREPL & REPLy versions (to 0.2.5 & 0.3.5)
closes #1658
2014-09-04 09:42:39 -05:00
Manfred Moser
e0ad0db0d6 switching to https for the central repo 2014-08-01 16:12:51 -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
e6b620cabe Fix bad eval test. 2014-06-15 17:24:55 -07:00
Gary Fredericks
04ef2fc621 correct Unnecessary capitalization 2014-06-12 22:45:17 -05:00
Gary Fredericks
e5351155bf Add regression test for #1555 2014-06-11 12:58:42 -05:00
Phil Hagelberg
f8711c48e3 Fix splicing for partial aliases. 2014-06-08 15:12:29 -07:00
Andy Chambers
1ffbb408db Use warn instead of info where applicable 2014-04-26 17:17:56 -04:00