Skip to content

Commit b7afd38

Browse files
committed
sbt-dotty: Use default dependency resolution
In particular, this should use coursier instead of ivy unless someone forced the use of ivy. And we shouldn't have to worry about inter-project dependencies in the dotty build because of coursier/sbt-coursier#101.
1 parent 625efde commit b7afd38

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

sbt-dotty/src/dotty/tools/sbtplugin/DottyPlugin.scala

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -405,15 +405,10 @@ object DottyPlugin extends AutoPlugin {
405405

406406
/** Create a scalaInstance task that uses Dotty based on `moduleName`. */
407407
def dottyScalaInstanceTask(moduleName: String): Initialize[Task[ScalaInstance]] = Def.task {
408-
val ivyConfig0 = Classpaths.mkIvyConfiguration.value
409-
// When compiling non-bootstrapped projects in the build of Dotty itself,
410-
// dependency resolution might pick a local project which is not what we
411-
// want. We avoid this by dropping the inter-project resolver.
412-
val ivyConfig1 = ivyConfig0.withResolvers(ivyConfig0.resolvers.filter(_.name != "inter-project"))
413408
val updateReport =
414409
fetchArtifactsOf(
415410
scalaOrganization.value %% moduleName % scalaVersion.value,
416-
ivy.IvyDependencyResolution(ivyConfig1),
411+
dependencyResolution.value,
417412
scalaModuleInfo.value,
418413
updateConfiguration.value,
419414
(unresolvedWarningConfiguration in update).value,

0 commit comments

Comments
 (0)