Skip to content

add scalafix-loader supporting version & deps in .scalafix.conf #2236

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bjaglin
Copy link
Collaborator

@bjaglin bjaglin commented Apr 20, 2025

Helps for scalacenter/sbt-scalafix#482
Towards #1146 & joan38/mill-scalafix#239

Revisits #2226 & #2231, reverted in #2240

@bjaglin bjaglin changed the title add overloads to load a custom scalafix version support scalafix version in .scalafix.conf Apr 20, 2025
@bjaglin bjaglin closed this Apr 20, 2025
@bjaglin bjaglin reopened this Apr 20, 2025
@bjaglin bjaglin force-pushed the versions-in-conf branch 7 times, most recently from fbaeeb5 to 0736e12 Compare April 27, 2025 12:56
@bjaglin bjaglin changed the title support scalafix version in .scalafix.conf introduce scalafix-loader to support version & deps in .scalafix.conf Apr 27, 2025
@bjaglin bjaglin force-pushed the versions-in-conf branch 6 times, most recently from 95827f3 to 18e287f Compare April 27, 2025 23:50
@bjaglin bjaglin changed the title introduce scalafix-loader to support version & deps in .scalafix.conf add scalafix-loader supporting version & deps in .scalafix.conf Apr 28, 2025
@bjaglin bjaglin force-pushed the versions-in-conf branch 8 times, most recently from 9bba45b to 1bceae9 Compare May 4, 2025 19:13
@bjaglin bjaglin force-pushed the versions-in-conf branch 2 times, most recently from 90c6fcb to 68ab37a Compare May 8, 2025 14:36
@bjaglin bjaglin force-pushed the versions-in-conf branch 2 times, most recently from 34b4f36 to cff3f67 Compare May 8, 2025 19:51
bjaglin added 2 commits May 9, 2025 13:24
An old scalafix-interfaces client should be able to get the full Scala version
for a recent scalafix-cli version. This is achieved by encapsulating property
file lookup behind a Java interface, for which an implementation can easily
be retrieved via ServiceLoader, as long as the recent scalafix-versions JAR
has been fetched.
@bjaglin bjaglin force-pushed the versions-in-conf branch 2 times, most recently from d92cad8 to 692834a Compare May 11, 2025 10:05
Add implementation of Scalafix & ScalafixArguments in new project, with
support for targeting a different scalafix-cli version, based on an optional
scalafix version in .scalafix.conf. That scalafix-cli version is fetched and
loaded via service provider when one of the non-with method is invoked, and
initialized with all accumulated parameters.
@bjaglin bjaglin force-pushed the versions-in-conf branch from 692834a to 3681ba4 Compare May 11, 2025 14:11
.settings(
moduleName := "scalafix-versions",
javaSettings,
mimaPreviousArtifacts := Set.empty, // TODO: remove after 0.14.4
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

🔧

.settings(
moduleName := "scalafix-loader",
javaSettings,
mimaPreviousArtifacts := Set.empty, // TODO: remove after 0.14.4
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

🔧

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.

1 participant