mirror of https://github.com/sbt/sbt.git
Log output of dependency information tasks instead of printing (#82)
This allows use of "last-grep" to filter the output. Fixes https://github.com/coursier/coursier/issues/1191
This commit is contained in:
parent
4cd80259aa
commit
bc38ddc252
|
|
@ -83,8 +83,7 @@ object DisplayTasks {
|
|||
|
||||
val resolutions = coursierResolutionTask(sbtClassifiers, ignoreArtifactErrors).value
|
||||
for (ResolutionResult(subGraphConfigs, resolution, dependencies) <- resolutions) {
|
||||
// use sbt logging?
|
||||
println(
|
||||
streams.value.log.info(
|
||||
s"$projectName (configurations ${subGraphConfigs.toVector.sorted.mkString(", ")})" + "\n" +
|
||||
Print.dependencyTree(
|
||||
resolution,
|
||||
|
|
@ -125,7 +124,7 @@ object DisplayTasks {
|
|||
reverse = true,
|
||||
colors = !sys.props.get("sbt.log.noformat").toSeq.contains("true")
|
||||
)
|
||||
println(strToPrint)
|
||||
streams.value.log.info(strToPrint)
|
||||
result.append(strToPrint)
|
||||
result.append("\n")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue