Skip to content

Commit

Permalink
add comment to UtilityTasks.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
unkarjedy committed Jan 22, 2025
1 parent ef006aa commit f43d8e0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ object UtilityTasks extends SbtStateOps {
Keys.crossScalaVersions.in(project).get(data).getOrElse(Seq.empty).filter(_.startsWith("2."))
}

if (crossScala2VersionsInScala3Projects.nonEmpty && scala3Projects.length == crossScala2VersionsInScala3Projects.length) {
// We can only do this when all sbt projects cross-compile to Scala 2 & Scala 3
// See https://youtrack.jetbrains.com/issue/SCL-22619/
val canSetScala2VersionGlobally = crossScala2VersionsInScala3Projects.nonEmpty &&
scala3Projects.length == crossScala2VersionsInScala3Projects.length
if (canSetScala2VersionGlobally) {
"++" + crossScala2VersionsInScala3Projects.maxBy(numbersOf) :: state
} else {
state
Expand Down

0 comments on commit f43d8e0

Please sign in to comment.