Skip to content

Commit

Permalink
remove deprecated keys
Browse files Browse the repository at this point in the history
  • Loading branch information
bjaglin committed Mar 22, 2022
1 parent 0a4dfc6 commit 91d131f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
4 changes: 0 additions & 4 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ object Dependencies {
val all = List(
"org.eclipse.jgit" % "org.eclipse.jgit" % "5.13.0.202109080827-r",
"ch.epfl.scala" % "scalafix-interfaces" % scalafixVersion,
// coursier-small provides a binary stable API around Coursier making sure that
// sbt-scalafix doesn't conflict with the user's installed version of sbt-coursier.
// Details: https://github.com/olafurpg/coursier-small
"com.geirsson" %% "coursier-small" % "1.3.3",
"io.get-coursier" % "interface" % "1.0.6"
)
}
29 changes: 0 additions & 29 deletions src/main/scala/scalafix/sbt/ScalafixPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,6 @@ object ScalafixPlugin extends AutoPlugin {
"Make scalafix invocations incremental. On by default."
)

import scala.language.implicitConversions
@deprecated(
"Usage of coursiersmall.Repository is deprecated, use coursierapi.Repository instead",
"0.9.17"
)
implicit def coursiersmall2coursierapi(
csRepository: cs.Repository
): Repository =
csRepository match {
case m: cs.Repository.Maven => coursierapi.MavenRepository.of(m.root)
case i: cs.Repository.Ivy => coursierapi.IvyRepository.of(i.root)
case cs.Repository.Ivy2Local => coursierapi.Repository.ivy2Local()
}
val scalafixResolvers: SettingKey[Seq[Repository]] =
settingKey[Seq[Repository]](
"Optional list of Maven/Ivy repositories to use for fetching custom rules. " +
Expand Down Expand Up @@ -122,22 +109,6 @@ object ScalafixPlugin extends AutoPlugin {
scalafix / streams := (scalafixDummyTask / streams).value
)
)
@deprecated("This setting is no longer used", "0.6.0")
val scalafixSourceroot: SettingKey[File] =
settingKey[File]("Unused")
@deprecated("Use scalacOptions += -Yrangepos instead", "0.6.0")
def scalafixScalacOptions: Def.Initialize[Seq[String]] =
Def.setting(Nil)
@deprecated("Use addCompilerPlugin(semanticdb-scalac) instead", "0.6.0")
def scalafixLibraryDependencies: Def.Initialize[List[ModuleID]] =
Def.setting(Nil)

@deprecated(
"Use addCompilerPlugin(scalafixSemanticdb) and scalacOptions += \"-Yrangepos\" instead",
"0.6.0"
)
def scalafixSettings: Seq[Def.Setting[_]] =
Nil
}

import autoImport._
Expand Down

0 comments on commit 91d131f

Please sign in to comment.