有没有一种简单的方法可以用 Dotty 编译 sbt 项目?

Is there a simple way to compile an sbt project with Dotty?

既然 Dotty 显然已经准备好编译更大的项目,我想知道是否有一种简单的方法可以将它用作 sbt 项目中 Scalac 的直接替代品?就像我有以下 build.sbt:

name := "Foo"

scalaVersion := "2.11.7"

我可以采取一些步骤将 Scalac 换成 Dotc 吗?

我们合并了 Guillaume Martres 贡献的 #2344 Make sbt aware of Dotty 功能,它将成为 0.13.10 的一部分。 在此期间,您可以通过发布到 https://repo.scala-sbt.org/scalasbt/ivy-snapshots/.

的每晚进行试用