Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scalacenter/scala3-migrate
A tool to help migrating from Scala 2 to Scala 3
https://github.com/scalacenter/scala3-migrate
scala scala3 tool
Last synced: 6 days ago
JSON representation
A tool to help migrating from Scala 2 to Scala 3
- Host: GitHub
- URL: https://github.com/scalacenter/scala3-migrate
- Owner: scalacenter
- License: apache-2.0
- Created: 2020-09-09T07:44:38.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-20T09:07:34.000Z (8 days ago)
- Last Synced: 2024-12-20T09:31:03.609Z (8 days ago)
- Topics: scala, scala3, tool
- Language: Scala
- Homepage: https://docs.scala-lang.org/scala3/guides/migration/scala3-migrate.html
- Size: 1.04 MB
- Stars: 110
- Watchers: 9
- Forks: 24
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
scala3-migrate
[![Latest version](https://index.scala-lang.org/scalacenter/scala3-migrate/scala3-migrate/latest.svg)](https://index.scala-lang.org/scalacenter/scala3-migrate/scala3-migrate)
[![Build status](https://github.com/scalacenter/scala3-migrate/workflows/CI/badge.svg)](https://github.com/scalacenter/scala3-migrate/actions?query=workflow)
========# Scala 3 migration plugin for sbt
## User documentation
The complete documentation of `sbt-scala3-migrate` can be found in [docs.scala-lang.org](https://docs.scala-lang.org/scala3/guides/migration/scala3-migrate.html).
## Usage
### Requirements
- sbt 1.5 or higher
- java 8 or 11
- scala 2.13, preferred 2.13.15### Installation
```
// project/plugins.sbt
addSbtPlugin("ch.epfl.scala" % "sbt-scala3-migrate" % "0.6.2")
```### Porting the build
To port a build to Scala 3, run the following commands in order, in each project of the build:
1. `migrateDependencies ` helps you update the list of `libraryDependencies`
2. `migrateScalacOptions ` helps you update the list of `scalacOptions`
3. `migrateSyntax ` fixes a number of syntax incompatibilities between Scala 2.13 and Scala 3
4. `migrateTypes ` tries to make your code compile with Scala 3 by inferring a few types and resolving a few implicits.## Contributions and feedbacks are welcome
The tool is still under development, and **we would love to hear from you**.
Every feedback will help us build a better tool: typos, clearer log messages, better documentation, bug reports, ideas of features,
so please open [GitHub issues](https://github.com/scalacenter/scala3-migrate).## Acknowledgments
This tool is developed by the [Scala Center](https://scala.epfl.ch)