Skip to content

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

Open
@bjaglin

Description

@bjaglin

/**
* @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,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions