Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initiate the tutorial for migrating an sbt project #61

Closed
adpi2 opened this issue Sep 23, 2020 · 0 comments · Fixed by #93
Closed

Initiate the tutorial for migrating an sbt project #61

adpi2 opened this issue Sep 23, 2020 · 0 comments · Fixed by #93
Assignees
Labels

Comments

@adpi2
Copy link
Member

adpi2 commented Sep 23, 2020

The tutorial covers the following steps

  • Prerequisite: scala version >2.13, valid compiler plugins, no macro annotations...
  • Find the right set of dependencies: most scala 2 dependencies are compatible with scala 3. For the macro libraries it is required to upgrade to a cross-compiled version.
  • Optionally fix some incompatibilities with Scalafix (link to the scalafix tutorial Add Scalafix tutorial for migration (sbt) #62)
  • Configure the build tool for cross compilation: use sbt 1.4.0-RC2, sbt-dotty plugin and the crossVersions settings
  • Find the right set of dotc options depending on the scalac options (link to the compiler options page Add page on compiler options #60)
  • Add the dotc migration mode options
  • Try to compile with Dotty / fix the errors / compile in 2.13 / run the tests in 2.13 / iterate
  • Rewrite with Dotty if necessary
  • Leave the Dotty migration mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant