sbt-scalafix: use `sbt.librarymanagement` API for `scalafixResolvers` instead of `cousierapi`
GreyPlane opened this issue · comments
When configuring custom repo for scalafix it's really awkward that I have to use to set of apis for sbt and scalafix-sbt.
It's much convenient to use the same API if possible.
Thanks for opening that @GreyPlane, this would definitely improve UX. I will gladly merge PRs automatically honoring sbt resolvers when scalafixResolvers
is unset, and deprecating that setting key.
Implementation-wise, we should probably vendor the sbt2coursier logic, after adapting it to the limited API exposed by coursier-interface. Maybe a warning could be issued for sbt resolvers that can't be converted into coursier-interface ones. FWIW, see also this historical note (that might not be relevant).
Thanks, I will investigate and try to make a PR on my spare time.
Thanks to @GreyPlane, this is now available in the latest SNAPSHOT.
resolvers += Resolver.sonatypeRepo("snapshots")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.12.0+12-18c20a67-SNAPSHOT")