Commit graph

4287 commits

Author SHA1 Message Date
Jean Niklas L'orange
b29b2ea41b Merge pull request #2037 from solicode/issue-2035
Modify tiered-jvm-opts for :base profile
2015-12-05 17:19:12 +01:00
solicode
d8cb708160 Modify tiered-jvm-opts for :base profile
Ensures `-XX:-OmitStackTraceInFastThrow` is always included by default
regardless of user's LEIN_JVM_OPTS. This setting can be overridden in
other profiles by the user.
2015-12-05 21:30:34 +09:00
Jean Niklas L'orange
e9efb0e279 Update task defn information, ref #1913
Afaik there's no need to not pass in a project-like thing as first
argument for tasks.
2015-11-24 00:39:28 +01:00
Jean Niklas L'orange
53f12e8d4b Allow tasks to have vararg-only form, closes #1913
Aliases are higher order, but also attempts to keep track of tasks via
:arglists metadata. The :arglists update function assumed all tasks
would start with a project arg. However, this isn't necessary: A task
may e.g. have the form [& args] and destructure the project arg inside
the function. This caused lein to incorrectly assume that appending more
arguments to the tasks was an error. (The only tasks I know of right now
that does this is mine, so I should probably take the hint)

I also decided to clean up the drop-partial-args function a bit to make
it more readable.
2015-11-24 00:28:28 +01:00
Jean Niklas L'orange
58b5f7248b Remove duplicate profiles before profile merging
When we expand composite profiles, we may end up with multiple identical
profiles in the resulting list. However, we should only merge a profile
at most once. To fix this, we dedupe the list and retain the _last_
profile mentioned. We retain the last instead of the first as this
prioritises the last profile merges, which is somewhat important for
tasks like repl, uberjar, and to some extent `with-profile +foo`.

It might be interesting to see if we can get away from this in 3.0.0,
for example by saying that
(= (merge-profiles project [:a]) (merge-profiles project [:a :a])).

Fixes #1824 and fixes #2001.
2015-11-22 16:19:49 +01:00
Jean Niklas L'orange
59120a4c55 Merge pull request #1998 from emlyn/aot-warning
Don't trigger implicit-aot-warning on regex match
2015-11-22 12:36:59 +01:00
Emlyn Corrin
1cba82001c Convert main symbol to string 2015-11-22 08:53:00 +00:00
Jean Niklas L'orange
fb876c7d49 Print GPG errors when we receive them, ref #1892
This isn't a perfect solution to error messages, as GPG bypasses the
stdin and sends data directly to the terminal. As such, things from
"stdin" is printed immediately, whereas stderr is printed through the
JVM. As a consequence, it's almost always the case that the stdin lines
are printed before the stderr lines, even though GPG usually sends them
in the opposite order. But it should give you a better indication when
something bad has happened.

Issue #1904 may accidentally be solved as well, as we now have a
shutdown hook on GPG.
2015-11-22 02:52:15 +01:00
Jean Niklas L'orange
f822bdacf1 Display progress on artifact signing, closes #1892 2015-11-22 02:33:06 +01:00
Florian Anderiasch
5433965fc8 Merge pull request #2027 from winks/leiningen-1759
Clarify password/passphrase in DEPLOY.md
2015-11-15 21:36:51 +01:00
Florian Anderiasch
d3d8c19812 Clarify password/passphrase in DEPLOY.md 2015-11-15 21:34:20 +01:00
Florian Anderiasch
e2c257552f Reset ERRORLEVEL and RC in lein.bat
Fixed #1865
For reference:
http://blogs.msdn.com/b/oldnewthing/archive/2008/09/26/8965755.aspx
2015-11-15 20:33:12 +01:00
Jean Niklas L'orange
98379a9c85 Merge pull request #2024 into master 2015-11-10 23:09:08 +01:00
Jean Niklas L'orange
374557c70a Set LEIN_JAVA_CMD to JAVA_CMD if set
Also don't mess with export options for JAVA_CMD. It's not set in
lein anymore, so it's effectively a noop.
2015-11-10 23:09:05 +01:00
Florian Anderiasch
db81aed816 Merge pull request #2023 from m9aertner/leiningen-1899
Leiningen 1899
2015-11-10 20:33:05 +01:00
Juergen Hoetzel
ae4f6a87d3 Don't preset JAVA_CMD. Refs #2009
Because on Cygwin JAVA_CMD will be set to an UNIX path. This will result
in a "File not found" exception when the native Leiningen JAVA process
will execute JAVA_CMD.
2015-11-10 00:18:10 +01:00
Matthias Gaertner
ce47c9b913 2.5.2-SNAPSHOT doesn't build on Windows 7 with Java 8 #1899
Checked upgrade command. Condition was wrong and self-modifying batch code
is just ugly.

Testing:
- Remove 2.5.3 JAR file. This will be re-loaded by calling self-install
  on the loaded batch file.
- Execute "bin\lein.bat upgrade 2.5.3".
- The batch file will be reverted to the 2.5.3 state and JAR file loaded.
2015-11-09 01:54:30 +01:00
Matthias Gaertner
3b4079f0e1 2.5.2-SNAPSHOT doesn't build on Windows 7 with Java 8 #1899
Checked on Windows 7 and Windows 8, with Java Oracle 1.8.0_65.
Improved error detection, especially for downloads. Script
returns non-zero exit code on problems now.
Updated wget link. The original URL does not work any longer.
Supplied a known clean download location, including VirusTotal link.
The slightly re-written structure makes this code work with TCC, too,
so this commit should solve #2019, too.
Quoting has been amended so the code works on Leiningen folders that
contain space characters.
2015-11-09 00:28:44 +01:00
Jean Niklas L'orange
204df2d8f6 Merge pull request #2022 from sbondaryev/feature/binary-file-support
support binary files in lein-new
2015-11-08 01:58:45 +01:00
Sergiy BONDARYEV
00e574eaab add raw-resourcer higher order functoin which returns raw-files generator 2015-11-07 23:08:44 +01:00
Sergiy BONDARYEV
1e390727ff change default renderer io/reader -> io/input-stram to support binary files 2015-11-07 14:51:17 +01:00
Matthias Gaertner
927b9bf26c 2.5.2-SNAPSHOT doesn't build on Windows 7 with Java 8 #1899 2015-11-05 23:54:58 +01:00
Jean Niklas L'orange
dde4022c18 Merge pull request #2009 from propan/master
show a better error message when java is not found in PATH
2015-11-02 00:21:05 +01:00
Jean Niklas L'orange
86e985397a Merge branch 'pr/2017' 2015-11-01 23:58:37 +01:00
Jean Niklas L'orange
c6b559ddb5 bump some hidden nrepl deps, ref #2017 2015-11-01 23:57:53 +01:00
Jean Niklas L'orange
936f377b8e Merge pull request #2007 from schmir/fix-non-github-url-parsing
don't parse broken scm params from non-github URLs
2015-11-01 22:52:55 +01:00
Jean Niklas L'orange
3667708c57 Merge pull request #1990 from MichaelBlume/no-auth
allow setting no-auth in settings
2015-11-01 22:50:59 +01:00
Bozhidar Batsov
8fd028e896 Bump the nREPL dep to 0.2.12
nREPL 0.2.11 added an extremely important source-tracking feature, which is leveraged by CIDER (and probably some other tools). 0.2.12 fixed a critical bug introduced in 0.2.11.
2015-11-01 18:34:46 +02:00
Pavel Prokopenko
6379f6dad9 show a better error message when java is not found in PATH 2015-10-24 00:19:04 +03:00
Jean Niklas L'orange
4d91b32123 Merge pull request #2008 from floating-cat/master
Update CHANGELOG.md templates
2015-10-22 13:49:55 +02:00
floating-cat
1a68eb0c1e Update CHNAGELOG.md templates 2015-10-22 10:55:50 +08:00
Ralf Schmitt
d70936419c don't parse broken scm params from non-github URLs
return nil instead of the empty list from parse-github-url. Otherwise
we end up with broken connection and developerConnection params in pom
files when not using github, like in:

  <scm>
    <connection>scm:git:git://github.com//.git</connection>
    <developerConnection>scm:git:ssh://git@github.com//.git</developerConnection>
    <tag>03299434f4af53bde0fd4f4000174ae7a7ee0818
</tag>
    <url>https://github.com//</url>
  </scm>

With this change, the scm section for non-github URLs looks like:

  <scm>
    <tag>03299434f4af53bde0fd4f4000174ae7a7ee0818
</tag>
    <url/>
  </scm>
2015-10-16 14:09:46 +02:00
Jean Niklas L'orange
74d4168bf3 Merge pull request #2006 from RasterBurn/patch-1
Documentation fix: change passphrase to password
2015-10-16 00:20:29 +02:00
Dan Harbin
ef928dfc7b Documentation fix: change passphrase to password
`:passphrase` does not work in this context (non-gpg encrypted credentials).  This works when you specify `:password` instead.
2015-10-14 16:36:42 -05:00
Phil Hagelberg
3bd52cb8a9 Merge pull request #2005 from coldnew/fix-typo-on-profiles-md
Fix typo on PROFILES.md
2015-10-13 13:22:18 +00:00
Yen-Chin Lee
205664426a Fix typo on PROFILES.md
The :resource-paths is mispelled in :resources-path.

Signed-off-by: Yen-Chin Lee <coldnew.tw@gmail.com>
2015-10-13 13:44:51 +08:00
Jean Niklas L'orange
86ad734b0f Merge pull request #2004 from pietromenna/pedantic-abort-when-true
Return non zero status when :pedantic? is set to true or :abort
2015-10-12 00:19:31 +02:00
Pietro F. Menna
d2a2076477 Return non zero status when :pedantic? is set to true or :abort
Closes #1856.
2015-10-11 17:16:46 -03:00
Jean Niklas L'orange
696ccf90fd Merge pull request #2002 from timvisher/add-timvisher-to-news
Add exit code change to NEWS
2015-10-02 18:51:34 +02:00
Tim Visher
180490c485 Add Tim Visher to NEWS 2015-10-02 12:43:02 -04:00
Emlyn Corrin
3395edfe69 Need access to regex? 2015-09-28 18:03:25 +01:00
Emlyn Corrin
e0c3ea9d04 Make regex? visible 2015-09-28 18:01:45 +01:00
Emlyn Corrin
5c3fdbb62b Don't trigger implicit-aot-warning on regex match
Prevent the implicit-aot-warning from triggering if `:aot` contains a regex matching the main namespace.
2015-09-28 17:55:19 +01:00
Jean Niklas L'orange
d701275464 Quote components in ()s in lein.bat
Thanks for modulus @ freenode/#leiningen for the fix.
2015-09-26 16:36:19 +02:00
Jean Niklas L'orange
89f7ba1465 Merge pull request #1991 from MichaelBlume/container-build
allow travis to do a container build
2015-09-23 09:52:14 +02:00
Jean Niklas L'orange
7b6537a02c Merge pull request #1993 from rwilson/master
Added to template docs explaining mustache delimiters
2015-09-23 09:50:03 +02:00
Ryan Wilson
de4ec3e970 Added section to template documentation explaining mustache delimiters. 2015-09-22 17:47:44 -07:00
Michael Blume
a0c6df0916 allow travis to do a container build 2015-09-21 16:22:12 -07:00
Michael Blume
f60562c5a6 allow setting no-auth in settings
Some wagons can find their own authentication. For example, the S3 wagon can
use IAM roles if it's running on an EC2 instance. For these wagons, all we need
to do is get out of the way.
2015-09-21 16:16:54 -07:00
Jean Niklas L'orange
87c7e07da9 Back to snapshot 2015-09-22 00:37:56 +02:00