Merge pull request #7906 from Friendseeker/sbt-6905

[1.x] Synchronize `dependencyTree` console output
This commit is contained in:
eugene yokota 2024-11-22 16:28:40 -05:00 committed by GitHub
commit f25fde18a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 3 deletions

View File

@ -147,8 +147,9 @@ object DependencyTreeSettings {
.asciiTree(GraphTransformations.reverseGraphStartingAt(graph, module), graphWidth) .asciiTree(GraphTransformations.reverseGraphStartingAt(graph, module), graphWidth)
} }
.mkString("\n") .mkString("\n")
synchronized {
streams.value.log.info(output) streams.value.log.info(output)
}
output output
}, },
) ++ ) ++
@ -171,7 +172,9 @@ object DependencyTreeSettings {
key := { key := {
val s = streams.value val s = streams.value
val str = (key / asString).value val str = (key / asString).value
s.log.info(str) synchronized {
s.log.info(str)
}
}, },
key / toFile := { key / toFile := {
val (targetFile, force) = targetFileAndForceParser.parsed val (targetFile, force) = targetFileAndForceParser.parsed