Commit Graph

95 Commits

Author SHA1 Message Date
Alexandre Archambault fb46cc5f66 Tweak scripted test for sbt 1.x 2018-09-24 16:06:36 +02:00
Alexandre Archambault db1884a84e Remove 2.10 stuff 2018-09-24 15:03:50 +02:00
Alexandre Archambault 826ac55482 Run former sbt 0.13 specific tests with sbt 1.x too 2018-09-24 14:57:43 +02:00
Alexandre Archambault 6198ef85f2
Run test repo from a more practical script (#901) 2018-09-22 18:32:40 +02:00
Teo Klestrup Röijezon c0558cb440 s/coursierLoggerFactory/coursierCreateLogger/g 2018-07-10 01:54:22 +02:00
Teo Klestrup Röijezon e2ddb5c66a Made coursierLoggerFactory a Task rather than a Setting 2018-07-07 01:28:06 +02:00
Teo Klestrup Röijezon 0b187efd96 Pluggable loggers for sbt-coursier (#872) 2018-06-29 11:44:09 +02:00
Alexandre Archambault 817d6b6d44 Remove now unnecessary helper functions
They were useful on Java 6, and aren't anymore now that we require Java >= 8
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 189bc7799a Clean-up 2018-03-12 21:50:36 +01:00
Alexandre Archambault 6f8a9d295f Fix deprecation warnings 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 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 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
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
Dale Wijnand 1bb7742d71 Replace most of SbtCompatibility with sbt-compat (#731) 2018-01-10 15:38:48 +01:00
Alexandre Archambault 617fe5cc3d
Merge pull request #712 from coursier/topic/update-report-exclusions
Write exclusions and transitiveness in sbt update reports, add sbt-shared module
2017-12-11 17:50:27 +01:00
Alexandre Archambault ee9c61393c Move FromSbt / ToSbt helpers to separate module 2017-12-11 10:07:04 +01:00
Alexandre Archambault 97a137b0bb Write exclusions and transitiveness in sbt update reports
Makes it unnecessary to add a jboss repository for plugins in some
cases, like when using sbt-assembly
2017-12-11 01:25:49 +01:00
Alexandre Archambault c384797744 Incur less IO via more careful use of Def.task / taskDyn
Previousy, even when the update report was found in the in-memory cache,
some IO was still incurred because of the coursierArtifacts key, which
was evaluated in all cases. This PR makes sure it is not evaluated when
the update report is found in cache.
2017-12-11 00:36:35 +01:00
Olivier Deckers ebb7e66a26 Implemented clean task + added integration test. Fixes #685 2017-11-03 15:21:39 +01:00
Alexandre Archambault d27c0ee46e Quick hack to make publishSigned work again with sbt 1.0.2
Ideally, the scripted tests should still be run with sbt 1.0.1 too, to
ensure there are no regression with it, but the current setup doesn't
make that easy.
2017-10-27 17:19:34 +02:00
Alexandre Archambault 09c5ce417a Quick hack
This ensures something sometimes random is not in some conditions, see https://github.com/coursier/coursier/issues/650
2017-09-20 00:12:20 +02:00
Alexandre Archambault d077a82341 Fix MatchError when using cross version patch with sbt 1.0 2017-09-19 23:23:32 +02:00
Alexandre Archambault a743f1183e Add helpers for recursive use of sbt-coursier
If sbt-coursier is enabled in `project/project/plugins.sbt`, then one
can just add `addSbtCoursier` in `project/plugins.sbt` instead of
`addSbtPlugin(…)`. In particular, that allow to specify the version of
coursier only once.
2017-09-11 12:33:52 +02:00
Alexandre Archambault ef669e68e4 Filter out preloaded repos by default
These sometimes have POMs without the corresponding JARs for some
dependencies, which coursier doesn't allow for now (if a repo has
POMs, it must the corresponding JARs).

Plus preloaded stuff aren't that useful with sbt-coursier enabled.
2017-09-11 12:33:52 +02:00
Alexandre Archambault ca5ac162f2 More careful handling of sbt task dependencies
E.g. ensure no sbt classifiers tasks get evaluated when doing simple
updates
2017-09-11 12:33:52 +02:00
Alexandre Archambault 99f1db149e Merge pull request #646 from coursier/topic/xml-truncation
Prevent tags to be split in generated Ivy XML
2017-08-30 02:14:10 +02:00
Alexandre Archambault 8f988d4d08 Prevent tags to be split in generated Ivy XML 2017-08-30 01:26:46 +02:00
Alexandre Archambault 2e225befbc How many ack level are you on?
Don't know if there's a better / more straightforward way to get address
this. Things were working just fine with sbt 0.13. The goal is to simply
get the repo list that sbt uses to resolve the global plugins, but from a
*-build project.
2017-08-30 01:01:07 +02:00
Alexandre Archambault 372a29c1ee Fix hard-coded sbt binary version 2017-08-30 01:01:06 +02:00
Alexandre Archambault 09a29c26d0 Quick fix adding the sbt plugin repo when necessary
Non reg idocker-based ntegration test for that would be fine
(but the CI of coursier is already cluttured enough)

See the added TODO for some context
2017-08-09 13:06:53 +02:00
Alexandre Archambault 972a7d0ebe Add extra path to get org.scala-sbt:global-plugins:0.0
As this relies on global stuff, it's not straightforward to test... A
docker-based integration test could be added later...
2017-08-06 21:14:35 +02:00
Alexandre Archambault cfa72fed66 Fix sbt 1.0 scripted test 2017-08-05 14:21:34 +02:00
Alexandre Archambault d17e9b93b9 Ensure publishing signed things works fine 2017-08-04 16:38:46 +02:00
Alexandre Archambault 4e74e7f66d Take into account new cross version fields in sbt 1.0 2017-08-04 16:20:02 +02:00
Alexandre Archambault d3bedc838f Fix updateSbtClassifiers 2017-07-22 17:29:27 +02:00
Alexandre Archambault 6c2e62080c Fix sbt 1.0 scripted tests
These are only run locally
2017-07-19 18:59:04 +02:00
Alexandre Archambault 95f08e99d6 Merge pull request #613 from coursier/topic/max-iteration
Factor default max # of iterations
2017-07-19 15:30:19 +02:00
Alexandre Archambault 4fbb2f1992 Merge pull request #612 from coursier/topic/test-jar
Don't require adding type test-jar to classpathTypes
2017-07-19 13:00:52 +02:00
Alexandre Archambault db3679dce4 Factor default max # of iterations 2017-07-19 02:07:15 +02:00
Alexandre Archambault f797681fab Switch to sbt 1.0.0-RC2 2017-07-19 01:40:18 +02:00
Trent Schmidt 16d27bb482 Don't require adding type test-jar to classpathTypes
E.g. when adding dependencies with a tests classifier
2017-07-19 01:02:53 +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 2cd1a3b0b1 Clean stuff 2017-07-15 17:19:06 +02:00
Alexandre Archambault 334f784895 Dummy fix 2017-06-24 16:07:58 +02:00