Commit Graph

39 Commits

Author SHA1 Message Date
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
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
Alexandre Archambault e248a43f32 Take into account UpdateConfiguration passed to DependencyResolution 2020-06-26 14:15:30 +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 33cfaf3df6 Address compilation warnings 2020-05-19 15:58:31 +02:00
Alexandre Archambault ca0d5eaa3c Set dependencyResolution in scalaCompilerBridgeScope too 2020-05-15 12:20:43 +02:00
Alexandre Archambault 907d26865a Set missingOk if sbtClassifiers is true
Seems sbt doesn't do it by default
2020-05-15 12:20:43 +02:00
Alexandre Archambault 0ce27bde9e Pass sbtClassifiers around
Mostly for printed messages, and for missingOk in a subsequent commit
2020-05-15 12:20:26 +02:00
eugene yokota 0047a9803b
Implement missingOk (#212)
Ref https://github.com/coursier/coursier/issues/1541
Ref https://github.com/sbt/sbt/issues/4707

This adds `missingOk` setting to `CoursierConfiguration`, forwarding the `missingOk` setting in `UpdateConfiguration` from LM API. lmcoursier _not_ respecting this setting is causing various issues on sbt side since the expected behavior of some plugins (including IntelliJ import feature) is that the source JARs missing would not fail the entire operation.
Ideally we should return a partially resolved graph (for example if one out of 20 depdencies are missing source JARs it's still useful), but for now I'm going to return an empty `UpdateReport`.

Co-authored-by: Alexandre Archambault <alexandre.archambault@gmail.com>
2020-05-05 17:35:12 +02:00
Alexandre Archambault 59ec5d2b95 Add strict reconciliation, and versionReconciliation key 2019-08-14 17:28:30 +02:00
Alexandre Archambault 4a27bd42bc
Fix NoSuchMethodError when using coursier-based sbt launcher (#104) 2019-07-26 15:36:50 +02:00
Alexandre Archambault e39b9cf55c
Take dependencyOverrides into account in sbt-lm-coursier (#106) 2019-07-23 20:26:00 +02:00
Alexandre Archambault 759d0bff9a
Discard inter-projects when they aren't needed (#101)
Useful in the dotty build in particular
2019-07-11 20:24:06 +02:00
Alexandre Archambault d223389637 Take conflictManager setting into account
Only latest-revision (default) and strict are supported for now.
2019-07-08 17:31:36 +02:00
Alexandre Archambault 5436809323 Take ivyPaths into account 2019-05-23 10:50:55 +02:00
Alexandre Archambault 16bf1570ad Rely on allExcludeDependencies when it's there
It excludes sbt itself in meta-builds in particular, see https://github.com/coursier/coursier/issues/1128
2019-04-26 10:20:59 +02:00
Alexandre Archambault 6bdd0f985a Vendor more stuff in lmcoursier, shade coursier in it
Along with shapeless, argonaut, argonaut-shapeless that coursier depends
on now.
2019-04-25 16:34:08 +02:00
Alexandre Archambault d6858b4857 Make most things private in lm-coursier
And as much as possible, have sbt-coursier-shared and sbt-lm-coursier
use as few as possible things from coursier itself and lm-coursier.
2019-04-25 16:34:08 +02:00
Alexandre Archambault 2c6a6503f1 Add back former coursierCredentials key
Not to break compatibility with former plugins
2019-04-04 18:43:50 +02:00
Alexandre Archambault 973cce68ad Rework / simplify credentials handling 2019-04-04 18:43:50 +02:00
Alexandre Archambault def85e3ddc Add sbt-dotty test
And take scalaModuleInfo.overrideScalaVersion into account.
Also requires the loosened cross version application of the previous
commit.
2019-03-06 11:39:53 +01:00
Alexandre Archambault 9bd17e0fdd Switch to coursier 1.1.0-M12, use high level API 2019-02-26 13:37:30 +01:00
Alexandre Archambault 8d568af4d9
Automatically add maven-plugin to classpathTypes for sbt plugins (#28) 2019-01-16 17:03:17 +01:00
Alexandre Archambault 6b1a84c563
Add addSbtCoursier helper to sbt-lm-coursier too (#16) 2018-12-12 11:19:05 +01:00
Alexandre Archambault 3b8e2f42cd Allow to tweak logger from sbt-lm-coursier too 2018-11-22 14:14:35 +01:00
Alexandre Archambault 40489f7fee Add credentials support to sbt-lm-coursier 2018-11-22 13:52:59 +01:00
Alexandre Archambault 3cbb1e3c2e Tweak scala organization handling in sbt-lm-coursier 2018-11-22 13:08:24 +01:00
Alexandre Archambault 5bf5058c31 Add profile handling to sbt-lm-coursier 2018-11-22 13:07:57 +01:00
Alexandre Archambault da58ebdaf8 Does this break anything? Let's see!! 2018-11-22 10:20:29 +01:00
Alexandre Archambault d17a2ca03f Make an updateClassifiers-related scripted test pass
That was painful…

Update depending on how https://github.com/sbt/sbt/pull/4459 goes
2018-11-21 15:29:50 +01:00
Alexandre Archambault 79cfba07ad Adjust scala-library JAR handling 2018-11-21 14:15:45 +01:00
Alexandre Archambault da2c0f5f1f Handle explicit URLs from sbt-lm-coursier 2018-11-21 13:21:41 +01:00
Alexandre Archambault 0289895584 Fix some updateSbtClassifiers-related stuff 2018-11-21 11:18:35 +01:00
Alexandre Archambault d729586e3a Use resolver stuff of sbt-coursier from sbt-lm-coursier
Makes more scripted tests pass
2018-11-21 11:13:30 +01:00
Alexandre Archambault ad11bd5f32 Remove unused stuff 2018-11-21 11:13:30 +01:00
Alexandre Archambault 2dc37ab4bc Take excludeDependency setting into account in sbt-lm-coursier 2018-11-20 17:26:36 +01:00
Alexandre Archambault 6cd9b7e2b4 Move ivy.xml generation stuff to sbt-coursier-shared 2018-11-20 17:18:19 +01:00
Alexandre Archambault c5e259f050 Add inter-project dependency support to sbt-lm-coursier 2018-11-20 15:59:09 +01:00
Alexandre Archambault ecee7fab99 Add sbt-lm-coursier plugin 2018-11-20 11:38:41 +01:00