Commit Graph

185 Commits

Author SHA1 Message Date
Arnout Engelen ed2cae987c
Resolve license inheritence in update report
In addition to the unit test, tested by running the scripted
tests on the `use-update` branch of `sbt-license-report` at
https://github.com/sbt/sbt-license-report/pull/123
2024-07-06 21:18:10 +02:00
Tomasz Godzik 7b43b758dd
Merge pull request #490 from lrytz/lib-unfreeze
Add a `sameVersions` paramter to CoursierConfiguration
2024-01-26 10:47:51 +01:00
Lukas Rytz 5c966f4562 Add a `sameVersions` paramter to CoursierConfiguration
Expose coursier's `SameVersion` rule to allow pinning libraries
to the same version.
2024-01-22 13:28:19 +01:00
Jakub Kozłowski 32a687d15e
Make module name non-empty 2024-01-16 00:46:58 +01:00
Hagai Hillel dab3f9b903
Retry mechanism for sbt (#450)
---------

Co-authored-by: Hagai Ovadia <hagai.ovadia@is.com>
Co-authored-by: Alexandre Archambault <alexandre.archambault@gmail.com>
2023-11-28 14:17:26 +01:00
Dmitrii Naumenko cee6474d24
fix condition in Resolvers.mavenCompatibleBaseOpt (use artifactPatterns instead of ivyPatterns) (#484)
Before the change Resolvers.mavenCompatibleBaseOpt always returned Some value because `baseIvyPattern == baseArtifactPattern` always was `true``
2023-11-27 14:57:45 +01:00
adpi2 71d4f2c969
Update coursier to 2.1.0-RC6 (#445) 2023-02-16 14:53:04 +01:00
Eugene Yokota e8b2a198fb Use dataclass-scalafix for code gen
This uses https://github.com/hamnis/dataclass-scalafix.
2022-08-13 22:01:29 -04:00
Eugene Yokota 22bac78b34 Move out custom methods in data-classes to syntax package
These are mostly unused, so we might be able to get rid of them too eventually?
2022-08-12 14:23:29 -04:00
Eugene Yokota ca6704b6b0 Move out data classes to its own subproject 2022-08-12 14:23:29 -04:00
Alexandre Archambault b587076320 Address deprecation warning 2022-08-12 14:51:31 +02:00
Alexandre Archambault 09edac2f10 Stop running neo-sbt-scalafmt test with sbt-coursier
Having issues running it on Linux on the CI. It seems it runs fine on
sbt-lm-coursier (all OSes), or on Windows (CI) or macOS (local machine).

Hope it's not a sign of a more serious problem…
2021-12-15 00:25:23 +01:00
Guillaume Massé 92e40c2225
Add support for custom protocols (#327)
* Add configuration to fetch custom protcol handlers

* Tweak things

Co-authored-by: Alexandre Archambault <alexandre.archambault@gmail.com>
2021-11-23 21:14:52 +01:00
Guillaume Massé 8aa5ce4ede
Add support for custom protocol (#324) 2021-03-08 15:03:28 +01:00
João Ferreira d8f97c306b
testing SbtCoursierCache leak (#317) 2021-02-15 16:35:18 +01:00
João Ferreira e5b2fe4b6c
fixes #1964 (#315) 2021-02-13 17:52:35 +01:00
eugene yokota 07278af003
Scala 2.13 support (#307) 2021-01-10 22:02:04 +01:00
Alexandre Archambault 6b597b3f79 Fix escaping issue
The way file URLs are handled changed a bit in coursier...
2020-11-18 17:57:53 +01:00
Øyvind Raddum Berg c7d20763d2
Don't lock threads when user has specified COURSIER_PROGRESS=disable or otherwise disabled progress bars (#273) 2020-10-05 16:53:48 +02:00
Alexandre Archambault f8c75d7033 Address deprecation warning 2020-09-15 11:36:11 +02:00
Alexandre Archambault 90f44bc5cc Deprecated temporary helper 2020-09-15 11:36:11 +02:00
Alexandre Archambault 29d957604e Make dependency-graph scripted test Windows-proof 2020-09-15 11:36:11 +02:00
Alexandre Archambault cc0643e71b
Remove sbt-pgp-coursier (#269) 2020-09-14 14:13:11 +02:00
eugene yokota 02016e9f21
Fix Provided configuration handling (#262)
* Reproduce Provided issue

Ref https://github.com/coursier/coursier/issues/1813

* Revert "Fix provided scope handling"

Ref https://github.com/coursier/sbt-coursier/pull/239

This reverts commit c5ab3a8047ab587ac741b3fedcd217624756d619 except for the scripted test.

* Restore CoursierConfiguration#provdedInCompile for bincompat
2020-07-31 16:26:05 +02:00
Alexandre Archambault 66f98e89ea Enable test 2020-06-26 14:15:30 +02:00
Alexandre Archambault e248a43f32 Take into account UpdateConfiguration passed to DependencyResolution 2020-06-26 14:15:30 +02:00
Alexandre Archambault 315a4bb4c0 Fix
Trapped errors?
2020-06-26 13:25:36 +02:00
Alexandre Archambault f5f3fd12f8 Refacto 2020-06-26 13:25:05 +02:00
Alexandre Archambault e601f843e5 Allow several resolutions to run at a time with fallback logger 2020-06-26 13:25:05 +02:00
Øyvind Raddum Berg 5f595b23a4 Reuse thread pool from `FileCache` 2020-06-26 13:25:05 +02:00
Alexandre Archambault 84a14e7855 Don't report evictions about modules in dependencyOverrides 2020-06-02 16:15:22 +02:00
Alexandre Archambault bc059d1bc6 Remove unused parameter and default values 2020-06-02 15:59:17 +02:00
Alexandre Archambault 158ede9ab1 nit 2020-06-02 15:59:15 +02:00
Alexandre Archambault bfa847de28 Uncomment evicted test 2020-06-02 15:59:15 +02:00
Alexandre Archambault 5e519e22e0
Add override element in ivy.xml (#247)
Note that it's not read by coursier later on though…
2020-06-02 13:30:02 +02:00
Alexandre Archambault 677725dc3f
Merge pull request #243 from alexarchambault/develop
Minor tweaking
2020-05-29 19:44:42 +02:00
Alexandre Archambault cc9d567917
Pass some missing strict parameters to coursier (#244) 2020-05-29 18:49:12 +02:00
Alexandre Archambault caa1123c1f Set csrConfiguration too, in sbt-lm-coursier
sbt-lm-coursier uses its own coursierConfiguration, rather than
csrConfiguration from sbt. Setting the latter just-in-case some other
plugin, or users, rely on csrConfiguration.
2020-05-29 15:55:21 +02:00
Alexandre Archambault d8ea3b91d5 Add helper method 2020-05-29 15:55:21 +02:00
Alexandre Archambault 031648a1d7
Fix provided scope handling (#239)
It was resolved independently of compile since we run resolutions for
each configuration. It couldn't bump versions in compile because of that
in particular.
2020-05-22 01:56:17 +02:00
Alexandre Archambault 33cfaf3df6 Address compilation warnings 2020-05-19 15:58:31 +02:00
Alexandre Archambault c82ab8850d Remove former shading plugin related code
Which is now unused.
2020-05-19 15:58:31 +02:00
Alexandre Archambault 2c2c98669d Clean-up scripted test 2020-05-19 14:23:48 +02:00
Alexandre Archambault 123f40723d Clean-up scripted test
Actually unused file
2020-05-19 14:23:48 +02:00
Alexandre Archambault 8aa40d1f21 Move ivy.xml generation stuff to lm-coursier
So that it can be re-used from sbt
2020-05-19 14:23:48 +02:00
Alexandre Archambault 6cebc8fe7a Keep global exclusions as such in generated ivy.xml 2020-05-19 14:23:48 +02:00
Alexandre Archambault 3d374247ca Rely on coursier.Resolve to handle exclusions
It applies it to root dependencies too, in particular.
2020-05-19 14:23:48 +02:00
Alexandre Archambault fa72797823 Clean-up scripted test 2020-05-19 14:23:48 +02:00
Alexandre Archambault 808f9a0d0f Tweak updateSbtClassifiers handling in sbt-coursier
Running one resolution per config messed things up a bit…
2020-05-19 14:23:48 +02:00
Alexandre Archambault 3cd521c43c Run resolution for each configuration
Rather than for each configuration sub-graph. This runs a resolution for
Compile, one for Runtime, one for Test, etc. rather than one for all 3
of them, for example.

We re-use the Resolution instance from the first extended configuration,
so that the performance penalty is really low.
2020-05-19 14:23:48 +02:00