Skip to content

Commit

Permalink
Merge pull request #40 from alejandrohdezma/ensure-new-versions
Browse files Browse the repository at this point in the history
Ensure we get notified of new scalafix rules versions by scala-steward
  • Loading branch information
alejandrohdezma authored Feb 27, 2020
2 parents b12786f + c3590cd commit ecddc2d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
ThisBuild / scalaVersion := "2.12.10"
ThisBuild / organization := "com.alejandrohdezma"

/**
* Although the plugin already adds these dependencies,
* this way we ensure that we get notified when a new version
* for them gets published.
*/
ThisBuild / scalafixDependencies := ScalafixWithDefaultsPlugin.scalafixDefaultRules

Global / onChangedBuildSource := ReloadOnSourceChanges

addCommandAlias("ci-test", "fix --check; mdoc")
Expand All @@ -20,6 +27,6 @@ lazy val `sbt-fix` = project
.settings(addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.3.1"))

lazy val `sbt-fix-it` = project
.settings(description := "Enables scalafix/scalafmt settings in it configuration")
.enablePlugins(SbtPlugin)
.dependsOn(`sbt-fix`)
.enablePlugins(SbtPlugin)
.settings(description := "Enables scalafix/scalafmt settings in it configuration")
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ object ScalafixWithDefaultsPlugin extends AutoPlugin {
)
}

private lazy val scalafixDefaultRules: Seq[ModuleID] = Seq(
lazy val scalafixDefaultRules: Seq[ModuleID] = Seq(
"com.github.vovapolu" %% "scaluzzi" % "0.1.3",
"com.nequissimus" %% "sort-imports" % "0.3.2",
"com.eed3si9n.fix" %% "scalafix-noinfer" % "0.1.0-M1"
Expand Down

0 comments on commit ecddc2d

Please # to comment.