From 709cfc96f93b8a62a687f1df6837e621745feefd Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Tue, 10 Jan 2017 18:44:49 +0100 Subject: [PATCH] Fix support for published dotty nightly builds Dotty nightly builds are published to maven, so they end up in configuration "default", not "compile". We still need to look into "compile" when dotty is published locally. You can test this using https://github.com/smarter/dotty-example-project by updating the sbt version used in project/build.properties and by replacing "0.1.1-SNAPSHOT" by a nightly version like "0.1.1-20170109-be64643-NIGHTLY" in build.sbt --- ivy/src/main/scala/sbt/IvyScala.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ivy/src/main/scala/sbt/IvyScala.scala b/ivy/src/main/scala/sbt/IvyScala.scala index 43b3f112e..2f0401691 100644 --- a/ivy/src/main/scala/sbt/IvyScala.scala +++ b/ivy/src/main/scala/sbt/IvyScala.scala @@ -29,7 +29,7 @@ object ScalaArtifacts { private[sbt] def toolDependencies(org: String, version: String, isDotty: Boolean = false): Seq[ModuleID] = if (isDotty) - Seq(ModuleID(org, DottyIDPrefix, version, Some(Configurations.ScalaTool.name + "->compile"), + Seq(ModuleID(org, DottyIDPrefix, version, Some(Configurations.ScalaTool.name + "->default(compile)"), crossVersion = CrossVersion.binary)) else Seq(scalaToolDependency(org, ScalaArtifacts.CompilerID, version),