From b9619bf2034a2229fac88f704d03cb1bb7b67369 Mon Sep 17 00:00:00 2001 From: Paul Draper Date: Sat, 23 Dec 2017 00:32:23 -0700 Subject: [PATCH] Sort coursier results For cache purposes --- .../lucidchart/scalafmt/coursier/ScalafmtCoursierPlugin.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/sbt-scalafmt-coursier/src/main/scala/com/lucidchart/scalafmt/coursier/ScalafmtCoursierPlugin.scala b/sbt-scalafmt-coursier/src/main/scala/com/lucidchart/scalafmt/coursier/ScalafmtCoursierPlugin.scala index 0679df4..99dd56c 100644 --- a/sbt-scalafmt-coursier/src/main/scala/com/lucidchart/scalafmt/coursier/ScalafmtCoursierPlugin.scala +++ b/sbt-scalafmt-coursier/src/main/scala/com/lucidchart/scalafmt/coursier/ScalafmtCoursierPlugin.scala @@ -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