How to create a Scala 3 (Dotty) project with SBT
By Alvin Alexander. Last updated: September 28 2019
I can never remember how to create a Scala 3 (Dotty) project with SBT (in early 2019), so:
# create a new Dotty project sbt new lampepfl/dotty.g8 # create a dotty project that cross compiles with scala 2 sbt new lampepfl/dotty-cross.g8 # start a dotty reply from within your sbt project $ sbt > console scala> _
Here’s what an example interaction looks like — include SBT renaming my directory name to all lowercase, which brings me no joy: