Skip to content

Commit

Permalink
Sort coursier results
Browse files Browse the repository at this point in the history
For cache purposes
  • Loading branch information
pauldraper committed Dec 23, 2017
1 parent 43928bc commit b9619bf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ object ScalafmtCoursierPlugin extends AutoPlugin {
.unsafePerformSync
.map(_.valueOr(error => throw new IOException(error.describe)))
.filter(_.ext == "jar")
.sorted
streams.value.log.info(s"Fetched ${result.size} artifacts for scalafmt")
IO.writeLines(cacheFile, newHash.toString +: result.map(_.toString))
result
Expand Down

0 comments on commit b9619bf

Please sign in to comment.