Skip to content

Commit

Permalink
Dependency: update scalafmt-dynamic to 3.1.1
Browse files Browse the repository at this point in the history
This new version requires an explicit version and fails on usage of
`.withRespectVersion(false)`.
  • Loading branch information
Albert Meltzer committed Nov 11, 2021
1 parent 72638bf commit 5f0b152
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ lazy val plugin = project
.settings(
moduleName := "sbt-scalafmt",
libraryDependencies ++= List(
"org.scalameta" %% "scalafmt-dynamic" % "3.0.8"
"org.scalameta" %% "scalafmt-dynamic" % "3.1.1"
),
scriptedBufferLog := false,
scriptedLaunchOpts += s"-Dplugin.version=${version.value}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ object ScalafmtPlugin extends AutoPlugin {
globalInstance
.withReporter(reporter)
.withMavenRepositories(repositories: _*)
.withRespectVersion(false)
.withRespectProjectFilters(true) match {
case t: ScalafmtSessionFactory =>
val session = t.createSession(config.toAbsolutePath)
Expand Down
2 changes: 2 additions & 0 deletions plugin/src/sbt-test/scalafmt-sbt/sbt/.scalafmt12.conf
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
version = 3.1.0
runner.dialect = scala213
style = IntelliJ

0 comments on commit 5f0b152

Please sign in to comment.