-
Notifications
You must be signed in to change notification settings - Fork 64
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
Scala 3/sbt 2 prep #259
Scala 3/sbt 2 prep #259
Conversation
import java.io.File | ||
|
||
package object web { | ||
|
||
/** | ||
* Describes a string path relative to a base directory. | ||
*/ | ||
type PathMapping = (File, String) | ||
type PathMapping = (FileRef, String) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is necessary because Keys.mappings
changed types in sbt 2. The type change creates significant type collisions in keys, mapping logic, and deduplicators.
Almost all of the type changes and FileConverter
additions in SbtWeb.scala
stem from this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one small comment.
Also please rebase, then we can merge.
Includes: * Add compatibility shims for colliding types * Switch to slash format in sbt files * Fix various warnings, errors when compiling in scala3 mode
b939cb3
to
c915b62
Compare
Done and done. |
Lots of scala 3 compatibility fixes. 1 of a series of PRs for sbt 2 compatibility.
+
format.scalafmt-native-action@v4
-Xsource:3
in Scala 2.12 mode.Note: This does not actually activate cross-builds. They won't work, still need to fix scripted tests.
Towards #255