Skip to content

An example sbt project that compiles using Dotty

License

Notifications You must be signed in to change notification settings

scala/scala3-example-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example sbt project that compiles using Scala 3

Continuous Integration

Usage

This is a normal sbt project. You can start the sbt shell using sbt then compile code with compile, run the main method with run, run the tests with test and start a REPL using console.

If compiling this example project fails, you probably have a global sbt plugin that does not work with Scala 3. You might try disabling plugins in ~/.sbt/1.0/plugins and ~/.sbt/1.0.

Making a new Scala 3 project

The fastest way to start a new Scala 3 project is to use one of the following templates:

Using Scala 3 in an existing project

You will need to make the following adjustments to your build:

project/build.properties

sbt.version=1.10.7

You must use sbt 1.5.5 or newer; older versions of sbt are not supported.

build.sbt

Set the Scala 3 version:

scalaVersion := "3.6.2"

Getting your project to compile with Scala 3

For help with porting an existing Scala 2 project to Scala 3, see the Scala 3 migration guide.

Need help?

https://www.scala-lang.org/community/ has links.

About

An example sbt project that compiles using Dotty

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages