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

Port high-level withToolClasspath() overload to CLI #2108

Open
bjaglin opened this issue Oct 22, 2024 · 0 comments
Open

Port high-level withToolClasspath() overload to CLI #2108

bjaglin opened this issue Oct 22, 2024 · 0 comments

Comments

@bjaglin
Copy link
Collaborator

bjaglin commented Oct 22, 2024

/**
* @param customURLs Extra URLs for classloading and compiling external rules.
* @param customDependenciesCoordinates Extra dependencies for classloading and compiling external rules.
* For example "com.nequissimus::sort-imports:0.5.2".
* Artifacts will be resolved against the Scala version in the classloader
* of the parent {@link Scalafix} instance and fetched using Coursier.
* @throws ScalafixException in case of errors during artifact resolution/fetching.
*/
ScalafixArguments withToolClasspath(
List<URL> customURLs,
List<String> customDependenciesCoordinates
) throws ScalafixException;

could and should be made available for CLI users, by supporting maven coordinates on top of URLs for --tool-classpath in

@Description(
"Additional classpath for compiling and classloading custom rules, as a set of filesystem paths, separated by ':' on Unix or ';' on Windows."
)
toolClasspath: URLClassLoader = ClasspathOps.thisClassLoader,

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

No branches or pull requests

1 participant