summaryrefslogtreecommitdiff
path: root/scalalib/src/scalafmt/ScalafmtModule.scala
diff options
context:
space:
mode:
Diffstat (limited to 'scalalib/src/scalafmt/ScalafmtModule.scala')
-rw-r--r--scalalib/src/scalafmt/ScalafmtModule.scala16
1 files changed, 2 insertions, 14 deletions
diff --git a/scalalib/src/scalafmt/ScalafmtModule.scala b/scalalib/src/scalafmt/ScalafmtModule.scala
index 6a81d975..ea254e6d 100644
--- a/scalalib/src/scalafmt/ScalafmtModule.scala
+++ b/scalalib/src/scalafmt/ScalafmtModule.scala
@@ -11,23 +11,12 @@ trait ScalafmtModule extends JavaModule {
.worker()
.reformat(
filesToFormat(sources()),
- scalafmtConfig().head,
- scalafmtDeps().map(_.path)
+ scalafmtConfig().head
)
}
- def scalafmtVersion: T[String] = "1.5.1"
-
def scalafmtConfig: Sources = T.sources(os.pwd / ".scalafmt.conf")
- def scalafmtDeps: T[Agg[PathRef]] = T {
- Lib.resolveDependencies(
- zincWorker.repositories,
- Lib.depToDependency(_, "2.12.4"),
- Seq(ivy"com.geirsson::scalafmt-cli:${scalafmtVersion()}")
- )
- }
-
protected def filesToFormat(sources: Seq[PathRef]) = {
for {
pathRef <- sources if os.exists(pathRef.path)
@@ -46,8 +35,7 @@ object ScalafmtModule extends ExternalModule with ScalafmtModule {
.worker()
.reformat(
files,
- scalafmtConfig().head,
- scalafmtDeps().map(_.path)
+ scalafmtConfig().head
)
}