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

Support for multiple Scala versions #13994

Closed
stuhood opened this issue Dec 27, 2021 · 1 comment · Fixed by #14425
Closed

Support for multiple Scala versions #13994

stuhood opened this issue Dec 27, 2021 · 1 comment · Fixed by #14425
Assignees

Comments

@stuhood
Copy link
Member

stuhood commented Dec 27, 2021

This is very related to #13882.

@stuhood
Copy link
Member Author

stuhood commented Feb 7, 2022

Relates to #14171, although if we cannot accomplish that here, then just supporting multiple versions is the priority.

tdyas pushed a commit that referenced this issue Feb 10, 2022
Implement support for multiple Scala versions in the same repository. Each resolve will be assigned a single Scala version.

Scala requires that all Scala-compiled jars on a classpath (i.e, a resolve) be "compatible" with one another (regardless of whether they are third-party jars or jars compiled from first-party sources). For Scala 2.x versions, for example, "compatibility" means that all Scala-compiled jars were compiled with the same minor version of Scala (i.e., 2.12). We can maintain this "Scala compatibility" property for a resolve by assigning the resolve a single Scala version which ensures that there is single Scala version that all of the third-party jars must be compatible with and that all first-party sources are compiled with. 

Introduce the `--scala-version-for-resolve` option to implement the mapping from resolve to Scala version. The `--scala-version` option is deprecated and will be used as a fallback if the Scala version for a particular resolve is not set in `--scala-version-for-resolve`.

Closes #13994.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants