Commit graph

226 commits

Author SHA1 Message Date
Nelson Morris
b4770d03c0 Pom generation profile handling; Add java-source-paths
1) add java-source-paths; #474.
2) make some good tests
3) remove :test :dev and :default profiles for maven info
4) use :test, :dev, :default profiles for test info
2012-03-30 13:13:41 -05:00
Nelson Morris
d633fad0b6 Let deps :tree print a dependency tree 2012-03-22 22:27:16 -05:00
Phil Hagelberg
556f4b87e6 Switch from :busted test tagging to :post-preview. 2012-03-16 12:14:01 -07:00
Phil Hagelberg
37483b487b Add :offline test selector. 2012-03-16 11:57:35 -07:00
Phil Hagelberg
32c1a21b6a Don't use abort as a side-effect. 2012-03-16 11:57:34 -07:00
Nelson Morris
557cdde580 Pretty-print pom.xml. Fixes #429. 2012-03-14 07:41:39 -05:00
Michael S. Klishin
c7b92d1b78 One more test case for the lein new task, includes artifact group in project name 2012-03-12 08:11:40 +04:00
Anthony Grimes
82df67b959 Add a failing test for overlapped sourcepaths. 2012-03-06 15:58:14 -06:00
Phil Hagelberg
532496a1ab Merge branch '1.x'
Conflicts:
	.gitignore
	README.md
	bin/lein
	project.clj
	src/leiningen/compile.clj
	src/leiningen/core.clj
	src/leiningen/help.clj
	src/leiningen/jar.clj
	src/leiningen/repl.clj
	test/leiningen/test/deps.clj
	test/leiningen/test/help.clj
	todo.org
2012-03-04 21:22:20 -08:00
Phil Hagelberg
71874208f3 Move normalization out of defproject into top-level comp. 2012-03-01 11:17:40 -08:00
Nelson Morris
a102f1fd26 Set classifier in pom. Fixes #349 2012-02-22 22:56:27 -06:00
Chas Emerick
140e99c8e6 tweak test so that we *actually* fix gh-413. 2012-02-21 14:53:36 -05:00
Phil Hagelberg
7d8dca635d Use ordered maps for :dependencies and :repositories. Fixes #400. 2012-02-19 22:10:09 -08:00
Phil Hagelberg
59fe078991 Fix compilation test for numeric eval-in-project return values. 2012-02-13 21:11:11 -08:00
Phil Hagelberg
f08c484a8c Fix compile tests. 2012-02-08 23:38:35 -08:00
Phil Hagelberg
c11a3a83c0 Absolutize paths in :without-profiles project map as well. 2012-02-08 00:18:31 -08:00
Phil Hagelberg
e07a6fe108 Remove dummy leiningen.core namespace. 2012-02-07 18:15:12 -08:00
Nelson Morris
09483ed64d Update pomegranate; all repo/dependency options should work 2012-02-01 21:20:20 -06:00
Nelson Morris
1c5babe984 Fix jar task with jar-inclusions 2012-02-01 06:39:10 -06:00
Nelson Morris
8baf33ec80 Update deploy task 2012-01-22 22:41:47 -06:00
Nelson Morris
7ff1e2ed43 Update install task 2012-01-22 22:41:47 -06:00
Nelson Morris
39892e19fa Update uberjar for new api 2012-01-22 22:41:47 -06:00
Nelson Morris
ef2b0f0b9b Copy pom.xml generation from depot
Take some code from depot
Take the git scm code from lein 1.x
Update sample.project.clj with multiple source/test directories and extensions
Creates a similiar pom for sample.project.clj as lein 1.x
Use build-helper-maven-plugin for multiple source directories
2012-01-22 22:41:47 -06:00
Phil Hagelberg
d4e86d2a81 Derp; duplicate set key. 2012-01-17 20:33:34 -08:00
Phil Hagelberg
b43cdea3a8 Fix "lein new" tests to not care about order on disk. 2012-01-17 20:29:54 -08:00
Phil Hagelberg
92dfe67a85 Re-enable ci for master branch. 2012-01-17 20:08:19 -08:00
Phil Hagelberg
e50ee1ba4e Fix tests for main in leiningen-core. 2012-01-17 20:08:06 -08:00
Phil Hagelberg
d8190b1cb7 Move -main to leiningen.core.main. 2012-01-15 20:20:02 -08:00
Phil Hagelberg
1fee69f7b3 Update bootstrapping instructions, remove old lein.util.* references. 2012-01-12 18:05:00 -08:00
Phil Hagelberg
03e462cdec Re-enable tests targeted for preview. 2012-01-10 23:26:50 -08:00
Phil Hagelberg
64c381c001 Remove deprecated util namespaces (except ns; still needs work). 2012-01-10 23:25:08 -08:00
Phil Hagelberg
a749666bb7 Fix help task.
One namespaces-matching call still hasn't been switched over to leiningen.core.
2012-01-10 22:44:02 -08:00
Phil Hagelberg
6530927bcb Fix "lein compile :all". 2012-01-10 22:35:36 -08:00
Phil Hagelberg
c0adabb208 Fix jar task. Punt on shell wrappers for now. 2012-01-10 22:12:57 -08:00
Phil Hagelberg
4064065bd5 Fix compile task and tests. Punt on transitive cleaning for now. 2012-01-10 22:12:37 -08:00
Phil Hagelberg
464e631bef Remove plugin task. 2012-01-10 22:09:12 -08:00
Phil Hagelberg
c2b40834e0 OK, so relative paths in project maps was the wrong way to go. 2012-01-06 21:27:21 -08:00
Phil Hagelberg
1fe2fed158 Fix deps tests. 2012-01-06 21:27:21 -08:00
Phil Hagelberg
bfe2c32fd2 Remove dev-deps-only test project. 2012-01-06 21:27:21 -08:00
Phil Hagelberg
a6fe9e148e Fix test task for :test-path-as-collection. 2012-01-06 21:27:21 -08:00
Phil Hagelberg
bee65686e4 Full test suite will at least compile.
Tests which we don't expect to pass are marked with :busted metadata.
2012-01-06 21:27:21 -08:00
Phil Hagelberg
3e23fb126b Remove old core tests. 2012-01-06 21:27:21 -08:00
Phil Hagelberg
7a0449e6d6 Fix run tests. 2012-01-06 21:27:20 -08:00
Phil Hagelberg
07e9b4d0bc Fixed deps task; tests are still a mess. 2011-12-03 13:11:39 -08:00
Phil Hagelberg
6540de69a4 Un-mapify :repositories before handing off to pomegranate. 2011-12-03 12:41:11 -08:00
Nelson Morris
690c7966f4 Update tests for test task. 2011-12-03 14:07:24 -06:00
Nelson Morris
5184b8017e Update tests for compile tests
The classpath was changed to use absolute paths for the checkout
dependencies.  They were pointing to the wrong directory since the
working directory would be the leiningen project instead of the
test project.

This adds the absolute paths for test projects back, as just
changing the classpath does not help for the other tasks.
2011-12-03 13:39:22 -06:00
Phil Hagelberg
2c4fdac5e1 Normalize :repositories values into map. This fixes search task. 2011-12-02 21:02:01 -08:00
Phil Hagelberg
85b1dc5e81 Absolutize paths inside get-classpath for now. 2011-12-02 20:48:58 -08:00
Nelson Morris
cd5cd2c0d9 Update the run task tests for 2.0
The test.helper needed to change the project map for the test projects
because eval-in-project uses get-classpath, which will return the
relative paths for some directories.  This breaks in this case since
the working directory is not the root of the test project.
2011-12-02 21:45:47 -06:00
Phil Hagelberg
2b074c09b0 Switch run task over to using leiningen-core library.
Broken only because sample-project reading in test.helper is still busted.
2011-12-02 16:00:32 -08:00
Phil Hagelberg
7ff6478f5a Try to fix reading of sample projects in leiningen.test.helper.
Still broken unfortunately; getting inexplicable NPE out of resolve.
2011-12-02 16:00:32 -08:00
Phil Hagelberg
fb84749484 Only show a single line of help for subtasks in task help. 2011-11-30 17:53:12 -08:00
Phil Hagelberg
4575143988 Fix test task. 2011-11-22 16:00:46 -08:00
Phil Hagelberg
75ec33f0d4 Add :offline test selector. 2011-11-13 11:20:29 -08:00
Phil Hagelberg
3b02d41e83 Merge branch '1.x'
Conflicts:
	README.md
	bin/lein
	bin/lein-pkg
	bin/lein.bat
	doc/PLUGINS.md
	pom.xml
	project.clj
	src/leiningen/compile.clj
	src/leiningen/trampoline.clj
	todo.org
2011-11-12 13:46:59 -08:00
Phil Hagelberg
7c067a5e33 Ensure explicit deps calls override :checksum-deps. 2011-11-12 06:54:09 -08:00
Matjaz Gregoric
32ebf41f23 Call System/gc before deleting files recursively.
Calling System/gc can help release files on windows.
It will hopefuly help with issues such as #252 and #309.

I wasn't able to reproduce those two issues on Windows
Vista, but I have experienced a related problem when
running the leiningen test suite when some jar files
failed to be deleted. Calling System/gc resolved the
issue in that case.
2011-11-12 09:00:19 +01:00
Phil Hagelberg
d3797fe408 Look for main functions on Java classes in run task. Fixes #249. 2011-11-10 13:42:19 -08:00
Phil Hagelberg
bc253e5bc5 Fix compile test. 2011-11-10 04:53:34 -08:00
Phil Hagelberg
ffa1b3887c Check for file on disk before assuming :main should be AOT'd. Fixes #249. 2011-11-09 10:06:14 -08:00
Rob Wolfe
d83920b068 installing in local repository even if redefined in settings.xml 2011-11-09 09:18:09 -08:00
Phil Hagelberg
bcb3098e8f Make plugin help tests much less specific. 2011-11-01 11:38:18 -07:00
Matjaz Gregoric
0d6dc8f521 Work around a windows specific problem in tests.
On Windows, delete-file-recursively sometimes fails
to delete certain jar files, which results in cascading
test failures.

An explicit call to System/gc seems to solve the problem
on Windows Vista.
2011-10-31 08:49:21 +01:00
Phil Hagelberg
d6dfa89b1f Remove workaround for joda.
[ci skip]
2011-10-19 17:14:35 -07:00
Phil Hagelberg
bd6e487706 Apparently joda-time 1.6 is no longer resolving from central! 2011-10-19 16:57:36 -07:00
Phil Hagelberg
a97363c505 Don't error out when cleaning up after snapshot deps test. 2011-10-19 16:39:02 -07:00
Phil Hagelberg
d309b4b057 Propagate failure return values a bit better in install/jar. 2011-10-19 15:58:32 -07:00
Phil Hagelberg
2ffa002924 Clean up some test directory references. 2011-10-19 15:20:30 -07:00
Stephen Compall
8179e7bdd8 Test that load works after compiling with :clean-non-project-classes true. 2011-10-19 14:32:57 -07:00
Chas Emerick
bd6959c3a3 Add support for :deploy-repositories slot for deployment-only repositories; closes gh-273 2011-09-15 21:29:18 -04:00
Colin Jones
9d7c8b52b0 Support ordering repositories, fixes #268 2011-09-01 22:22:05 -05:00
Colin Jones
ad39cec761 Add a test around disabling maven central 2011-09-01 22:20:29 -05:00
Rob Wolfe
805c1faebd installing in local repository even if redefined in settings.xml 2011-08-20 23:01:48 +02:00
Phil Hagelberg
3b47bfccf1 Fix native-deps test. 2011-08-16 16:42:35 -04:00
Phil Hagelberg
0e299f0a17 Honor :jar-exclusions in copy-to-jar :bytes method. 2011-08-07 14:46:03 -07:00
Phil Hagelberg
53141eab86 Run eval-in-project using clojure.java.shell. Fixes #239. 2011-07-25 13:37:07 -07:00
Phil Hagelberg
69bdaa3a71 Separate JVM_OPTS and LEIN_JVM_OPTS. Fixes #233. 2011-07-24 21:05:44 -07:00
Phil Hagelberg
32ffd7818d Separate JVM_OPTS and LEIN_JVM_OPTS. Fixes #233. 2011-07-24 21:04:07 -07:00
Matjaz Gregoric
70bc19d5bb Fix typos. 2011-06-30 18:27:30 +02:00
Matjaz Gregoric
6abed15c43 Make native-deps test work on systems other than 32-bit linux. 2011-06-30 18:14:10 +02:00
Matjaz Gregoric
3867f97307 Fix an issue with leiningen's tests on Windows.
Deleting one of the jar files in the sample test project
was failing on Windows, which was causing all sorts of hard to debug
test errors.

Calling System/gc seems to do the trick (at least on Vista),
but it is not really a proper solution.
If anybody has a better idea, please speak up.
2011-06-30 17:06:11 +02:00
Phil Hagelberg
4e5574cc1c Allow search pagination to work outside project. 2011-06-18 20:39:04 -07:00
Joe Gallo
69174dc347 Accept a URL as an argument to the deploy task. 2011-06-13 14:32:07 -04:00
Phil Hagelberg
874951cc56 Extract os/arch-specific native libs into native. 2011-05-31 21:40:38 -07:00
Phil Hagelberg
2c0e605554 Move to usages of leiningen.util.paths. 2011-05-29 14:27:07 -07:00
Phil Hagelberg
c51ba1115e Fix search test. 2011-05-29 14:26:41 -07:00
Phil Hagelberg
665ad07b74 Merge native-deps functionality. Needs more testing. 2011-05-06 21:11:14 -07:00
Phil Hagelberg
be641e770d Un-generalize code injection. Use for Hooke only.
There's too much opportunity for collision to make this a generalized
feature; let's just use it to get the six forms required for add-hook
and thus retest/test selectors.
2011-05-06 20:05:55 -07:00
Clojure
668919b15d Fix search and uberjar tests. 2011-05-05 21:12:43 -07:00
Phil Hagelberg
e3c1847245 Merge search task into mainlein. (har har) 2011-05-04 18:07:53 -07:00
Phil Hagelberg
f9138b1f14 Use the first line of task defn docstrings as help summary. 2011-04-12 13:02:18 -07:00
Colin Jones
511ee7ef67 Fix version comparison by using Maven API. 2011-03-26 17:46:33 -05:00
Phil Hagelberg
74ba8f8829 Add tests for snapshot/releases distinction. 2011-03-20 11:00:15 -07:00
Phil Hagelberg
6546512048 Factor out test helper functions. 2011-03-17 21:49:51 -07:00
Phil Hagelberg
7347e67aa8 Support :snapshots/:releases/:update/:checksum settings in :repositories. 2011-03-15 23:04:02 -07:00
Phil Hagelberg
96ff4eee9e Allow multiple Java source paths. Fixes #155. 2011-03-09 21:51:49 -08:00
Joe Gallo
1cef468bcd Move test namespaces to leiningen.test.* 2011-03-06 09:41:47 -05:00
Phil Hagelberg
1c1c8f4229 Fix test-jar and test-pom. 2011-02-13 19:34:53 -08:00
Phil Hagelberg
727781e6bf Don't def project to var named after project. Fixes #147. 2011-02-13 15:07:58 -08:00