Skip to content
Snippets Groups Projects
Commit d65c6f2a authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

Add a patched scalariform version that reduces the excessive recompilation

This is not not perfect yet, but seems better to me, the actual patch is:

diff --git a/src/main/scala/com/typesafe/sbt/SbtScalariform.scala b/src/main/scala/com/typesafe/sbt/SbtScalariform.scala
index 8d46caa..63e51b4 100644
--- a/src/main/scala/com/typesafe/sbt/SbtScalariform.scala
+++ b/src/main/scala/com/typesafe/sbt/SbtScalariform.scala
@@ -84,7 +84,7 @@ object SbtScalariform extends AutoPlugin {

   def configScalariformSettings: Seq[Setting[_]] =
     List(
-      (sourceDirectories in Global in scalariformFormat) := List(scalaSource.value),
+      (sourceDirectories in Global in scalariformFormat) := unmanagedSourceDirectories.value,
       scalariformFormat := Scalariform(
         scalariformPreferences.value,
         (sourceDirectories in scalariformFormat).value.toList,
parent d689f35b
No related branches found
No related tags found
No related merge requests found
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment