Commit Graph

183 Commits

Author SHA1 Message Date
Alexandre Archambault 6198ef85f2
Run test repo from a more practical script (#901) 2018-09-22 18:32:40 +02:00
Alexandre Archambault 25234fa971 Run more tests against mirror repositories 2018-09-19 17:55:20 +02:00
Alexandre Archambault 48c58d1e96 Don't rely on directory listings anymore 2018-09-19 16:59:53 +02:00
Alexandre Archambault 9968a12d10 Tweak Ivy repositories artifact handling 2018-09-19 16:59:53 +02:00
Alexandre Archambault 2775ef396b Stop relying on non-optional artifacts in tests
Once we don't rely on directory listings anymore, most JARs will be
marked as optional. Also, attributes have to be set beforehand to get
artifacts with specific types, as available artifacts cannot be listed
beforehand.
2018-09-19 16:59:53 +02:00
Alexandre Archambault d329f31137
Allow to force the value of Maven properties during resolution (#886) 2018-08-02 15:02:41 +02:00
Loïc Girault 1487ca2cfe Add parent.X substitution (#870) 2018-06-25 13:33:09 +02:00
Alexandre Archambault 8a02ee8f15
Update things (#866) 2018-06-20 16:30:25 +02:00
P. Oscar Boykin f003314317 Add a Task.tailRecM for stack safe loops (#846) 2018-04-28 12:00:09 +02:00
Alexandre Archambault 9713c4a7bb Add missing parentheses 2018-03-19 10:48:50 +01:00
Shani Elharrar db2a871391 Print: use roots when rendering reverse graph (#808)
* Print: use roots when rendering reverse graph

* Print: Refactored to be able to return Tree data structure

* SBT: Refactored code and added coursierWhatDependsOn Task (?)

* SBT: Added tests to the new coursierWhatDependsOn task

* Tasks: Another try to fix the build

* Tree: Restored Apply[A] for binary compatibility

* Print.scala: Fix the build

* sbt-coursier: Refined what depends on check to check correctness

* PrintTests: Added test for reverseTree

* CR Fixes...

1. changed gotVersion to reconciledVersion
2. Moved AppliedTree to tests project
3. Changed message (wanted version, got version) to X -> Y
2018-03-18 23:45:11 +01:00
Alexandre Archambault 21d550543b Ensure a Future is passed back to utest in all cases 2018-03-16 13:44:44 +01:00
Alexandre Archambault 86d3b923e4 Disable test whose dependencies can change, when using proxies 2018-03-16 13:44:43 +01:00
Alexandre Archambault f8884d4170 Re-enable Nexus proxy tests, launch the mirrors from the tests 2018-03-16 13:44:43 +01:00
Alexandre Archambault 6f8a9d295f Fix deprecation warnings 2018-03-12 21:50:35 +01:00
Alexandre Archambault c98393838a Use coursier.util.Task more in tests 2018-03-12 21:50:35 +01:00
Alexandre Archambault 13eda41fa2 Remove former JS-only coursier.Task 2018-03-12 21:50:35 +01:00
Alexandre Archambault dc2e4996f4 Require Java 8 from now on 2018-03-12 21:50:35 +01:00
Alexandre Archambault 5bd162d5fe Tweak scalac options 2018-03-12 21:50:35 +01:00
Alexandre Archambault 29f8d7b680 Remove scalaz dependency from core and cache, add scalaz-interop module 2018-03-12 21:50:35 +01:00
Alexandre Archambault f4fe44fe2c Clean-up helper method to fully read InputStream 2018-03-03 15:09:02 +01:00
Alexandre Archambault 838a340b89 Remove deprecated stuff 2018-03-03 14:57:14 +01:00
Alexandre Archambault 5e1eeef757 Add coursier.util.Monad 2018-03-03 14:55:46 +01:00
Alexandre Archambault dc87950dc4 Remove some uses of scalaz.Scalaz.*Ops 2018-03-03 14:55:46 +01:00
Alexandre Archambault 1816b25b84 Stop using scalaz.{EitherT, \/}
Use scala.Either instead of \/

Use the custom coursier.util.EitherT instead of scalaz.EitherT
2018-02-22 18:20:34 +01:00
Alexandre Archambault 0123a377e2 Bump version, remove 1.0.x mima checks 2018-02-22 18:17:10 +01:00
Dorothy Ordogh 3e4a65d5ee Add ability to fetch artifact with a given url (#774)
* changes

* changes to Attributes

* make changes

* add test and fix bug

* add more tests

* fix failing tests

* fix parentheses

* remove comments I added and add test that's guarenteed not to exist in a repo

* remove Attributes third parameter and refactor Parse's moduleVersionConfig to return a tuple of Dependency and a Map of String to String representing extra parameters for the dependency

* update some return types and methods in the Helper class

* return FallbackDependenciesRepository back to original state

* refactor helper

* remove url from attributes

* fix tests and add cache to extra in build.sbt

* remove FallbackDepsRepo from sbt-coursier

* add variable for url and call encode in tests

* update tests and helper to have proper behavior

* remove setting deps to intransitive when url is present and add two tests

* add more tests, implement @wisechengyi's comments

* fix nits

* update ParseTests because some failed

* fix tests

* incorporate feedback from @alexarchambault and @wisechengyi

* update ParseTests to check for returned error vs thrown error

* remove one test that is covered in ParseTests

* fix nits

* add back deleted brackets

* return errors in Left without using return statement

* revert change because it's broken

* fix some positional things

* add return statement or else error won't be processed

* fix nits. thanks @wisechengyi

* Remove return statements
2018-02-22 18:06:06 +01:00
Alexandre Archambault 37aff72ada
Updates for 1.0.2 2018-02-09 11:26:37 +01:00
Alexandre Archambault e5714020f8 Better error messages in test 2018-02-07 10:23:07 +01:00
Alexandre Archambault 506e14a90b Switch cli to scala 2.12 and latest case-app 2018-02-07 10:23:07 +01:00
Alexandre Archambault d36cf0c57b Updates for 1.0.1 2018-02-03 18:11:16 +01:00
Alexandre Archambault 14bc756b5b Allow to deactivate Maven profiles from the CLI
And add extra tests for profile deactivation
2018-01-30 17:26:07 +01:00
Yi Cheng 849d128b90 Specify classifier on module level on CLI (#735) 2018-01-29 21:02:49 +01:00
Alexandre Archambault 00fd13e786 Update version numbers in CI scripts after 1.0.0 release 2017-12-18 12:00:03 +01:00
Alexandre Archambault 03f7cbb42d More careful handling of extenstion / type with snapshot versioning 2017-12-04 13:39:40 +01:00
Alexandre Archambault 389375da5d Fix divergence when parsing versions
Those starting with neither a letter, nor a digit, nor a known separator
2017-11-30 13:03:17 +01:00
Alexandre Archambault 5f5b127563 Bump dependencies 2017-10-21 02:30:51 +02:00
Yi Cheng 07e985bffc Fix cli print out completeness and cyclic handling issue (#671)
* simplify

* doc

* rename

* char

* more tests

* add tests then fix bugs

* Small tweak to avoid quadratic calculation
2017-10-20 00:54:58 +02:00
Alexandre Archambault b25fed1ae5 Fix flaky test 2017-09-20 00:12:21 +02:00
Alexandre Archambault 964151392b Allow exclusions to have no explicit artifact ID in POM 2017-09-04 02:01:36 +02:00
Gilad Hoch 10c65c6062 added acceptense for more possible forms of checksum patterns (#640)
added acceptance for more possible forms of checksum patterns
2017-08-17 18:31:20 +02:00
Gabor Aranyossy dd3e8be410 introducing sha-256 checksum support (#625)
introducing sha-256 checksum support
2017-08-04 16:23:22 +02:00
Alexandre Archambault 9dfed94053 Add short syntax for jitpack repo 2017-07-22 17:29:33 +02:00
Alexandre Archambault ef59fb5e49 Add small test of the code ensuring a module isn't fetched concurrently twice 2017-07-22 17:29:28 +02:00
Alexandre Archambault ea8927d7b2 Don't unnecesarily mark some artifacts as optional 2017-07-22 17:29:26 +02:00
Alexandre Archambault bddf67cc17 Always try to get artifacts corresponding to packaging 2017-07-22 17:29:25 +02:00
Alexandre Archambault 2815897b7a Fix compatibility API
It wasn't returning some (non optional) artifacts
2017-07-19 14:38:03 +02:00
Alexandre Archambault 4e5971129b Take into account classifiers specified via attributes in Ivy repos 2017-07-18 10:11:37 +02:00
Alexandre Archambault 19493a512a Use non soon-to-be-deprecated-or-reworked method 2017-07-17 17:12:30 +02:00
Alexandre Archambault fc0a1ccec7 Really filter out optional artifacts by default 2017-07-17 17:12:30 +02:00