Skip to content

Commit

Permalink
Merge pull request #168 from bjaglin/sbt140
Browse files Browse the repository at this point in the history
sbt 1.4.0
  • Loading branch information
github-brice-jaglin authored Oct 6, 2020
2 parents 5238ad7 + 47af740 commit 8284c35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.3.13
sbt.version=1.4.0
6 changes: 5 additions & 1 deletion src/main/scala/scalafix/sbt/ScalafixPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ object ScalafixPlugin extends AutoPlugin {
def scalafixConfigSettings(config: Configuration): Seq[Def.Setting[_]] =
inConfig(config)(
Seq(
scalafix := scalafixInputTask(config).evaluated,
scalafix := {
// force detection of usage of `scalafixCaching` to workaround https://github.com/sbt/sbt/issues/5647
val _ = scalafixCaching.?.value
scalafixInputTask(config).evaluated
},
compile := Def.taskDyn {
val oldCompile =
compile.value // evaluated first, before the potential scalafix evaluation
Expand Down

0 comments on commit 8284c35

Please sign in to comment.