When porting a Scala 2.13 project to Scala 3, you must adapt the list of compiler options. Indeed many options have been renamed and many others are not yet available in Scala 3.
The current page contains the look-up tables to help you translate a pre-existing list of Scala 2.13 options into Scala 3. The next page is dedicated to the new Scala 3 options.
Passing a unavailable option to the Scala 3 compiler does not make it fail. It just prints a warning and ignores the option.
The compiler options are classified and ordered according to their Scala 2.13 name. Each Scala 2.13 option is associated with its Scala 3 counterpart:
|it is avalaible in Scala 3|
|It has been renamed to |
|It is not available in 3.0.0 but it could be added later|
The comparison is based on Scala 2.13.4 and 3.0.0-M3.
Verbose settings were introduced in 2.13. Most of them are not yet implemented in Scala 3.
Warning settings were introduced in 2.13. Most of them are not yet implemented in Scala 3.
Some useful Scala 2.13 compiler plugins are now shipped into the compiler. You can enable and configure them with some new native options.