Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update docs to document that sbt resolvers are now handled #1975

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Conversation

bjaglin
Copy link
Collaborator

@bjaglin bjaglin commented Apr 17, 2024

scalacenter/sbt-scalafix#404 effectively removes the
ability for project-level scalafixResolvers, but it was not working for some
cases, and I think it's really not needed anyway.
@bjaglin
Copy link
Collaborator Author

bjaglin commented Apr 17, 2024

cc @GreyPlane

@GreyPlane
Copy link

Uh, I didn't really think about it when I was scoped scalafixResolvers, but if it was wanted, so anyway.

LGTM

@bjaglin bjaglin marked this pull request as ready for review April 17, 2024 10:45
@bjaglin bjaglin merged commit 22f2364 into main Apr 17, 2024
9 checks passed
@@ -157,7 +157,7 @@ Great! You are all set to use Scalafix with sbt :)
| `scalafixConfig` | `SettingKey[Option[File]]` | `.scalafix.conf` file to specify which scalafix rules should run, together with their potential options. Defaults to `.scalafix.conf` in the root directory, if it exists.
| `scalafixDependencies` | `SettingKey[Seq[ModuleID]]` | Dependencies making [custom rules](#run-custom-rules) available via their simple name. Can be set in `ThisBuild` or at project-level. Defaults to `Nil`.
| `scalafixOnCompile` | `SettingKey[Boolean]` | When `true`, Scalafix rule(s) declared in `scalafixConfig` are run on compilation, applying rewrites and failing on lint errors. Defaults to `false`.
| `scalafixResolvers` | `SettingKey[Seq[Repository]]` | Custom resolvers where `scalafixDependencies` are resolved from. Can be set in `ThisBuild` or at project-level. Defaults to: Ivy2 local, Maven Central, Sonatype releases & Sonatype snapshots.
| `scalafixResolvers` | `SettingKey[Seq[Repository]]` | Custom resolvers where `scalafixDependencies` are resolved from, in addition to user-defined sbt `resolvers`. Must be set in `ThisBuild`. Defaults to: Ivy2 local, Maven Central, Sonatype releases & Sonatype snapshots.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scalacenter/sbt-scalafix#404 effectively removes the ability to define project-level scalafixResolvers, but it was not working for some cases (with local rules), and it was never requested anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants