resolve

open override fun resolve(projectDir: Path, parseFailures: MutableList<ParseFailure>): ClasspathResolutionResult?(source)

Resolves the project's compile classpath by running subprocesses (mvn dependency:tree and/or gradle dependencies) and downloading the resulting coordinates via Maven Resolver.

Supports Maven-only, Gradle-only, and mixed Maven+Gradle projects, as well as projects where build files live in subdirectories. Both subprocess paths are attempted and their coordinates are combined before resolution.

Return

io.github.skhokhlov.rewriterunner.lst.utils.ClasspathResolutionResult containing the resolved JAR paths and, for Gradle projects where the gradle dependencies task succeeded, per-project configuration data for constructing org.openrewrite.gradle.marker.GradleProject markers. Returns null when no subprocess succeeds or resolution fails completely.