Commit Graph

166 Commits

Author SHA1 Message Date
Eric Peters 33aa61e8eb Parse Ivy-compatible RawRepository resolvers (#49) 2019-03-22 11:07:35 +01:00
Alexandre Archambault b8befa4ec7
Tweak global plugins handling (#47)
Seems the changes of
3eb210eb1b
were missing bits to handle the configurations of the global-plugins
project.
2019-03-15 19:02:44 +01:00
Alexandre Archambault 1c28e8fb6b
Switch to coursier 1.1.0-M13-1 (#45) 2019-03-07 15:35:35 +01: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 5ea339c6f3 Only add cross version suffixes when necessary
From CoursierDependencyResolution
2019-03-06 10:59:35 +01:00
Alexandre Archambault dbcbad7e2b Switch to coursier 1.1.0-M13 2019-03-06 10:59:35 +01:00
Alexandre Archambault 22e194db90 Temporary workaround for coursier-based sbt launcher
Seems reload reloads sbt from the same classloader, which leaves the in
memory cache as is. When update is called, things are then picked from
the cache, and nothing gets logged, which makes the test fail.
2019-03-06 10:59:35 +01:00
Alexandre Archambault d852209172 Tweak tests
Most of those adjustments are required when using the coursier-based sbt
launcher.
2019-03-04 12:19:52 +01:00
Alexandre Archambault dab476ab93 Add extra check
The size == 1 check just below is required for scripted to work fine.
(The first module report must correspond to the passed dependency for
scripted to find the sbt launcher JAR.)

It seems under some conditions, the sbt launcher dependency ends up
being duplicated (it's already duplicated in the allDependencies task,
that should be set by sbt). This in turn makes the check fail, and makes
scripted not find the sbt launcher. This happens with
playframework/interplay at commit d782b75.

The call to distinct circumvents that case.
2019-03-04 12:19:52 +01:00
Alexandre Archambault d21d388e85 Temporary workaround 2019-02-26 15:43:24 +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 399e84efd5 Warn in case of source dependencies where sbt-coursier isn't enabled 2019-02-18 14:03:54 +01:00
Alexandre Archambault 8e4fb146d8 Unused import 2019-02-18 14:03:54 +01:00
Alexandre Archambault 3eb210eb1b Less flaky handling of special project org.scala-sbt:global-plugins 2019-02-18 14:03:54 +01:00
Alexandre Archambault 7c5b8479ea Adjust dependency graph printing 2019-02-13 10:04:54 +01:00
Alexandre Archambault bb45ca7f5d Renaming 2019-02-06 15:22:58 -08:00
Alexandre Archambault 1390d319b1 Instantiate logger earlier, only keep one instance around
The loggers are now supposed to be re-usable (which simplifies their
handling)
2019-02-06 15:22:52 -08:00
Alexandre Archambault bc69e0b11a Start to use bits of the high level API of coursier
Its parameters mostly
2019-02-06 15:22:42 -08:00
Alexandre Archambault 4226df911d Switch to coursier 1.1.0-M11-1 2019-02-06 15:20:51 -08:00
Alexandre Archambault 697d84ea1a Switch to coursier 1.1.0-M10 2019-02-01 00:52:59 +01:00
Alexandre Archambault 8d568af4d9
Automatically add maven-plugin to classpathTypes for sbt plugins (#28) 2019-01-16 17:03:17 +01:00
Scala steward 2d8e389787 Update paradise to 2.1.1 (#23) 2019-01-13 23:52:53 +01:00
Alexandre Archambault 6b1a84c563
Add addSbtCoursier helper to sbt-lm-coursier too (#16) 2018-12-12 11:19:05 +01:00
Alexandre Archambault 3987ba9af6
Don't write version intervals in update reports (#12) 2018-11-29 17:01:40 +01:00
Alexandre Archambault 0fcacffc6b Mention former implementations 2018-11-27 11:40:02 +01:00
Alexandre Archambault a1dd332d4e Move remaining sbt-coursier specific tests 2018-11-22 14:23:50 +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 d898c79b54 Dummy refactoring / comment 2018-11-22 10:20:29 +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 e8cd2bbfaf Move scripted tests ok with sbt-lm-coursier 2018-11-21 14:14: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 ff79cab75c Move resolvers related tasks to sbt-coursier-shared
So that they can be used from sbt-lm-coursier too
2018-11-21 11:13:30 +01:00
Alexandre Archambault a592ee587a Move more stuff from sbt-coursier to sbt-coursier-shared
So that these are picked by sbt-lm-coursier too
2018-11-20 17:50:05 +01:00
Alexandre Archambault 239d875048 Make clean scripted test pass with sbt-lm-coursier 2018-11-20 17:40:10 +01:00
Alexandre Archambault ea5588f711 More scripted tests pass with sbt-lm-coursier 2018-11-20 17:34:23 +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 92bde55a5a Expose excludeDependencies handling 2018-11-20 16:09:13 +01:00
Alexandre Archambault 64a75ab5a2 Tweak scripted tests
Now passes for sbt-lm-coursier too
2018-11-20 16:07:43 +01:00
Alexandre Archambault 22f78872c8 Tweak scripted test 2018-11-20 15:59:32 +01:00
Alexandre Archambault c5e259f050 Add inter-project dependency support to sbt-lm-coursier 2018-11-20 15:59:09 +01:00
Alexandre Archambault 0225bc5ce7 Start to move some coursier specific keys to sbt-coursier-shared plugin 2018-11-20 15:55:55 +01:00
Alexandre Archambault 16574d8fc8 Remove sjson stuff
Too much fluff to compute a simple hash…
2018-11-20 15:53:21 +01:00
Alexandre Archambault d63e328665 Start to run scripted tests for sbt-lm-coursier 2018-11-20 11:48:19 +01:00
Alexandre Archambault ecee7fab99 Add sbt-lm-coursier plugin 2018-11-20 11:38:41 +01:00
Alexandre Archambault 4cbb9082cc Allow to adjust plugin name in scripted tests 2018-11-20 11:31:16 +01:00
Alexandre Archambault 91cb55cc2e Make all plugins.sbt files in scripted tests the same 2018-11-20 11:31:16 +01:00
Alexandre Archambault df7e529a59 Adjust namespace 2018-11-20 11:31:16 +01:00
Alexandre Archambault 55f457a6f7 Add DependencyResolutionInterface implementation in lm-coursier
Originally based on https://github.com/sbt/librarymanagement/pull/270
2018-11-20 11:25:16 +01:00
Alexandre Archambault 610bbf1113 Minor tweaking 2018-11-20 10:18:18 +01:00
Alexandre Archambault af041251c1
Refactor sbt-coursier, move bits of it to new lm-coursier module (#6) 2018-11-20 10:16:08 +01:00
Alexandre Archambault 9e9f875cf1 Clean-up sbt 0.13 specific files 2018-11-05 10:38:35 +01:00
Alexandre Archambault 9dc3651845 Tweak scripted test 2018-11-05 10:37:03 +01:00
Alexandre Archambault 0906201eb1 Switch to latest coursier 2018-11-05 10:35:10 +01:00
Alexandre Archambault 594eb47bc5 Don't force scala version if autoScalaLibrary is false 2018-10-29 11:30:34 +01:00
Alexandre Archambault ce6c7a2c64 Fix scripted test 2018-10-29 11:14:13 +01:00
Alexandre Archambault ebbf0b105b Split sbt-coursier Travis CI job 2018-10-17 14:18:04 +02:00
Alexandre Archambault 4855caa0f5 Move modules under modules/ 2018-09-28 18:36:32 +02:00