File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
sbt-dotty/src/dotty/tools/sbtplugin Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -93,16 +93,17 @@ object DottyPlugin extends AutoPlugin {
93
93
* with Dotty this will change the cross-version to a Scala 2.x one. This
94
94
* works because Dotty is currently retro-compatible with Scala 2.x.
95
95
*
96
- * NOTE: As a special-case, the cross-version of dotty -library, dotty -compiler and
97
- * dotty will never be rewritten because we know that they're Dotty- only.
96
+ * NOTE: As a special-case, the cross-version of scala3 -library and scala3 -compiler
97
+ * will never be rewritten because we know that they're Scala 3 only.
98
98
* This makes it possible to do something like:
99
99
* {{{
100
100
* libraryDependencies ~= (_.map(_.withDottyCompat(scalaVersion.value)))
101
101
* }}}
102
102
*/
103
103
def withDottyCompat (scalaVersion : String ): ModuleID = {
104
104
val name = moduleID.name
105
- if (name != " scala3" && name != " scala3-library" && name != " scala3-compiler" )
105
+ if (name != " scala3-library" && name != " scala3-compiler" &&
106
+ name != " dotty" && name != " dotty-library" && name != " dotty-compiler" )
106
107
moduleID.crossVersion match {
107
108
case binary : librarymanagement.Binary =>
108
109
val compatVersion =
You can’t perform that action at this time.
0 commit comments