Merge pull request #6942 from raboof/more-useful-logging-for-flexible-version-switch

This commit is contained in:
eugene yokota 2022-06-28 07:52:54 -04:00 committed by GitHub
commit 789ca334d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -294,7 +294,14 @@ object Cross {
if (switch.version.force) {
state.log.info(s"Forcing Scala version to $version on all projects.")
} else {
state.log.info(s"Setting Scala version to $version on ${included.size} projects.")
included
.groupBy(_._2)
.foreach {
case (selectedVersion, projects) =>
state.log.info(
s"Setting Scala version to $selectedVersion on ${projects.size} projects."
)
}
}
if (excluded.nonEmpty && !switch.verbose) {
state.log.info(s"Excluded ${excluded.size} projects, run ++ $version -v for more details.")