Using Dotty with cbt

NOTE: cbt support for Dotty is experimental and incomplete (for example, incremental compilation is not supported), we recommend using Dotty with sbt for now.

cbt comes with built-in Dotty support. Follow the cbt tutorial, then simply extend Dotty in the Build class.

// build/build.scala
import cbt._
class Build(val context: Context) extends Dotty {
  ...
}

Also see the example project.