Skip to content

Commit 8436ed5

Browse files
Merge pull request #8653 from dotty-staging/sbt-dotty-coursier
sbt-dotty: Use default dependency resolution, release 0.4.1
2 parents 88129fc + 0a1a010 commit 8436ed5

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,11 @@ final case class SbtCommunityProject(
103103
override val runCommandsArgs: List[String] =
104104
// Run the sbt command with the compiler version and sbt plugin set in the build
105105
val sbtProps = Option(System.getProperty("sbt.ivy.home")) match
106-
case Some(ivyHome) => List(s"-Dsbt.ivy.home=$ivyHome", "-Dsbt.supershell=false")
106+
case Some(ivyHome) => List(s"-Dsbt.ivy.home=$ivyHome")
107107
case _ => Nil
108108
extraSbtArgs ++ sbtProps ++ List(
109109
"-sbt-version", "1.3.8",
110+
"-Dsbt.supershell=false",
110111
s"--addPluginSbtFile=$sbtPluginFilePath")
111112

112113
object projects:

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ object Build {
6565
val referenceVersion = "0.24.0-bin-20200325-37eec14-NIGHTLY"
6666

6767
val baseVersion = "0.24.0"
68-
val baseSbtDottyVersion = "0.4.0"
68+
val baseSbtDottyVersion = "0.4.1"
6969

7070
// Versions used by the vscode extension to create a new project
7171
// This should be the latest published releases.

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)