@@ -243,7 +243,7 @@ object ScalafixPlugin extends AutoPlugin {
243
243
}
244
244
245
245
update.result.value match {
246
- case Value (v) => v
246
+ case Value (v : UpdateReport ) => v
247
247
case Inc (inc : Incomplete ) =>
248
248
Incomplete .allExceptions(inc).toList match {
249
249
case (resolveException : ResolveException ) :: Nil =>
@@ -264,7 +264,7 @@ object ScalafixPlugin extends AutoPlugin {
264
264
}
265
265
},
266
266
ivyConfigurations += ScalafixConfig ,
267
- scalafixAll := scalafixAllInputTask.evaluated,
267
+ scalafixAll := scalafixAllInputTask() .evaluated,
268
268
(scalafixScalaBinaryVersion : @ nowarn) :=
269
269
scalaVersion.value.split('.' ).take(2 ).mkString(" ." )
270
270
)
@@ -351,7 +351,7 @@ object ScalafixPlugin extends AutoPlugin {
351
351
val invocationDepsExternal = parsed.map(_.dependency)
352
352
val projectDepsInternal0 = projectDepsInternal.filter {
353
353
case directory if directory.isDirectory =>
354
- directory.** (AllPassFilter ).get.exists(_.isFile)
354
+ directory.** (AllPassFilter ).get() .exists(_.isFile)
355
355
case file if file.isFile => true
356
356
case _ => false
357
357
}
@@ -632,7 +632,7 @@ object ScalafixPlugin extends AutoPlugin {
632
632
}
633
633
634
634
private lazy val checkIfTriggeredSectionExists : Boolean = {
635
- val confInArgs = interface.args
635
+ val confInArgs : Option [ Path ] = interface.args
636
636
.collect { case Arg .Config (conf) => conf }
637
637
.flatten
638
638
.lastOption
@@ -672,7 +672,7 @@ object ScalafixPlugin extends AutoPlugin {
672
672
Tracked .diffInputs(
673
673
streams.cacheDirectory / " targets-by-rule" / rule,
674
674
cachingStyle
675
- )(targets) { changeReport : ChangeReport [File ] =>
675
+ )(targets) { ( changeReport : ChangeReport [File ]) =>
676
676
doForStaleTargets(changeReport.modified -- changeReport.removed)
677
677
}
678
678
@@ -696,7 +696,8 @@ object ScalafixPlugin extends AutoPlugin {
696
696
}
697
697
}
698
698
699
- val ruleTargetDiffs = interface.rulesThatWillRun
699
+ val ruleTargetDiffs = interface
700
+ .rulesThatWillRun()
700
701
.map(rule => diffTargets(rule.name) _)
701
702
.toList
702
703
accumulateAndRunForStaleTargets(ruleTargetDiffs)
0 commit comments