Commit graph

4192 commits

Author SHA1 Message Date
Dmitry Zudochkin
680f5f0252 tocontrol -> to control in LICENSE files 2016-07-23 01:06:19 +03: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
Jean Niklas L'orange
0f6fbaac03 Merge pull request #2172 from winks/new-faqs
Update the FAQ
2016-07-13 19:48:21 +02:00
Florian Anderiasch
523d5eb6f0 Update the FAQ 2016-07-12 23:13:05 +02:00
Chris Price
dda84dc765 Merge pull request #2171 from cprice404/bug/master/2170-update-clojars-cert
Update test for clojars cert expiration date - fixes #2170
2016-07-12 12:59:39 -07:00
Chris Price
869f09eeac Update test for clojars cert expiration date - fixes #2170 2016-07-12 12:43:59 -07:00
Toby Crawley
8fb87da2e7
Provide the current clojars certificate [#2170] 2016-07-12 15:32:56 -04:00
Chris Price
17fa738fd8 Merge pull request #2126 from cprice404/feature/master/2067-support-for-managed-dependencies
(#2067) add support for `managed-dependencies`
2016-07-12 11:33:12 -07:00
Chris Price
eb902a2714 Add support for dependencyManagement section in pom 2016-06-30 16:24:54 -07:00
Chris Price
7ea847d16f Clarify docs, add tests for transitive deps
This commit clarifies some things in the docs based on PR review.
It also adds additional test coverage for managed dependencies;
specifically, a case where two normal dependencies both have
a transitive dependency on the same library, but with different
versions.  The test validates that this conflict is properly
resolved via `:managed-dependencies`.
2016-06-30 10:29:18 -07:00
Chris Price
2fb603b2bf Add managed-dependencies example and docs
This commit adds an example of `:managed-dependencies` to the
sample project, and adds a separate markdown file to provide
more details and examples.
2016-06-27 11:41:59 -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
54fda200d7 (#2067) Improve test coverage for managed dependencies
This commit adds some additional dependencies to the test project
file for managed dependencies, and significantly increases the
coverage of the tests.
2016-06-22 14:24:38 -07:00
Chris Price
867b667601 (#2067) Improve comment about call to private pomegranate fn 2016-06-22 11:37:13 -07:00
Chris Price
dd824e572b (#2067) Deprecate 'resolve-dependencies', add managed deps to it
This commit deprecates the `resolve-dependencies` function in
favor of `resolve-managed-dependencies`.  It also conditionally adds
the `:managed-dependencies` key to the execution of the deprecated
function, in hopes of improving backward compatibility for cases
where people are still calling the deprecated version.

It also cleans up a few docstring "TODO"s and adds real docstrings.
2016-06-22 11:22:29 -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
Jean Niklas L'orange
49abe11085 Merge pull request #2155 from 3duard0/fix-issue-2082
Fix for issue #2082
2016-06-19 15:41:13 +02:00
Jean Niklas L'orange
eb96ad9a7b Merge pull request #2154 from zackdever/bash-completion-update
Remove 'swank' and add missing commands to bash completion.
2016-06-19 14:31:20 +02:00
Jean Niklas L'orange
773960bc3b Merge pull request #2144 from CannedYerins/master
#2128 Respect :scm :dir in leiningen.vcs/uses-vcs.
2016-06-19 13:16:59 +02:00
Jean Niklas L'orange
d5c37c59d8 Merge pull request #2146 from montoux/fix-2145-jvm-opts-parsing
Fix #2145: extra whitespace added to JVM_OPTS
2016-06-19 12:42:54 +02:00
Jean Niklas L'orange
0e8419a53c Merge pull request #2138 from alexhall/catch-fixture-exceptions
Catch and handle fixture errors during tests
2016-06-19 12:09:26 +02:00
Jean Niklas L'orange
0362964ac0 Fix naming in tutorial, fixes #2130
[ci skip]
2016-06-19 11:05:17 +02:00
Eduardo Seabra Silva
3b57068121 Fix issue #2082 2016-06-09 00:52:37 -03:00
Zack Dever
5862e78409 Remove 'swank' and add missing commands to bash completion.
Added: change, do, plugin, release, show-profiles, update-in, vcs
2016-06-03 12:06:39 -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
Ian Kerins
62cce8db33 Respect :scm :dir in leiningen.vcs/uses-vcs
Fixes #2128.
2016-05-14 20:56:13 -04:00
Alex Hall
61fd4de9db Catch and handle fixture errors during tests 2016-04-29 21:56:23 +00:00
Jean Niklas L'orange
66c7f9a8ea Merge pull request #2135 from dryewo/master
Add support for get-in pprinting to lein-pprint
2016-04-28 09:59:13 +02:00
Dmitrii Balakhonskii
c63301a564 Add support for get-in pprinting 2016-04-27 14:44:40 +02:00
Jean Niklas L'orange
e4d3c1e56c Move away from quoted LEIN_JAR again. 2016-04-25 20:43:32 +02:00
Jean Niklas L'orange
a39a1dc3c9 Merge pull request #2104 from mastersign/mastersign-patch-path-spaces
Quote CLASSPATH while calling Java Fixes #2086
2016-04-25 20:42:28 +02:00
Jean Niklas L'orange
851e608181 Merge pull request #2106 from solatis/patch-1
Fixed character escaping issue
2016-04-25 20:30:28 +02:00
Jean Niklas L'orange
2b5ea893af Merge pull request #2127 from RasterBurn/patch-2
Fix plugin profiles documentation
2016-04-14 13:20:14 +02:00
Dan Harbin
5d2bb2b563 Fix plugin profiles documentation
The documentation said to "Create a file called `src/myplugin/profiles.clj`".  This didn't work for me.  I had to create a file `resources/myplugin/profiles.clj` instead.
2016-04-13 17:01:51 -05:00
Jean Niklas L'orange
4e2320d704 Merge pull request #2116 from cprice404/maint/master/update-to-pomegranate-0.3.1
Update to pomegranate 0.3.1
2016-03-28 16:23:27 +02:00
Chris Price
f592c811c9 Update to pomegranate 0.3.1 2016-03-22 07:04:18 -07:00
Tobias Kiertscher
a87e5d83d9 removed inidividual quotes around paths in CLASSPATH
dropped support for semicolons in paths
2016-03-08 15:04:52 +01:00
Leon Mergen
1012ae2dcb Fixed character escaping issue
This fixes the issue where, if there would be a space in the classpath, the -cp variable passed to `java` would be incorrect.
2016-03-05 19:03:25 +01:00
Tobias Kiertscher
45870f4c80 Quote CLASSPATH while calling Java
to support spaces in LEIN_JAR, the later concatenated CLASSPATH must be quoted
2016-03-04 13:53:12 +01:00
Jean Niklas L'orange
4a683b85ed Merge pull request #2101 from pauldorman/patch-1
Fix for issue #2073
2016-02-26 15:49:29 +01:00
PntBlnk
c2cf7c6ffc Fix for issue #2073
This seems to work for me.
2016-02-26 14:56:53 +13:00
Jean Niklas L'orange
f9b1377261 Merge pull request #2099 from Reefersleep/avoid_lein_jar_on_windows
Avoid lein jar on windows
2016-02-24 23:55:57 +01:00
Søren Knudsen
724ce76d9d Reduce comment line lengths to 80 columns 2016-02-24 16:43:45 +01:00
Jean Niklas L'orange
28ff0cc1a4 Merge pull request #2100 from RickMoynihan/allow-user-repositories-when-uberjaring
Allow user repositories with uberjar Fixes #2098
2016-02-23 23:05:54 +01:00
Rick Moynihan
e401c2d921 Allow user repositories with uberjar Fixes #2098
Allow user defined private repositories when building jars, uberjars and
running deploy tasks.

For details see issue at:

https://github.com/technomancy/leiningen/issues/2098
2016-02-23 15:13:56 +00:00
Søren Knudsen
77997e6c51 Add comment warning about LEIN_JAR usage 2016-02-22 17:34:41 +01:00
Søren Knudsen
976bf2067a Add warning about LEIN_JAR usage in Windows 2016-02-22 08:55:58 +01:00
Jean Niklas L'orange
83e913834e Merge pull request #2094 from pkan/master
Add debug-mode warning when files are dropped from uberjar due to name clash
2016-02-19 11:02:10 +01:00
Peter Kanareitsev
9074913ac7 Added debug-mode warning when files are dropped from uberjar due to name clash. 2016-02-18 15:12:38 -05:00
Jean Niklas L'orange
540142bc55 Keep whitelist-keys for backwards compatibility 2016-02-17 23:53:40 +01:00