Package-level declarations

Types

Link copied to clipboard
class AetherContext(val system: RepositorySystem, val session: RepositorySystemSession, val remoteRepos: List<RemoteRepository>)

Bundles the three Maven Resolver objects needed by io.github.skhokhlov.rewriterunner.recipe.RecipeArtifactResolver and io.github.skhokhlov.rewriterunner.lst.DependencyResolutionStage: a RepositorySystem, a RepositorySystemSession, and the list of configured RemoteRepository instances.

Link copied to clipboard
data class ExecutionDiagnostics(val stageUsed: UsedExecutionStage?, val resolvedJarCount: Int, val parseFailures: List<ParseFailure> = emptyList(), val parsedFileCount: Int? = null, val estimatedTimeSaved: Duration? = null, val writeOutcome: WriteOutcome = WriteOutcome.EMPTY)

Diagnostic info about which execution path produced the run and how its classpath was assembled.

Link copied to clipboard

Safe construction of DefaultArtifact from a groupId:artifactId[:version] coordinate.

Link copied to clipboard
class MavenTransferListener(val logger: RunnerLogger) : AbstractTransferListener

Logs Maven artifact download progress in the same format Maven itself uses:

Link copied to clipboard
Link copied to clipboard
data class ParseFailure(val path: String, val reason: String, val parser: String)

A non-fatal parse failure recorded during LST building. Surfaced via ExecutionDiagnostics.parseFailures so callers can see which files the parsers could not handle without having to scrape the logs.

Link copied to clipboard

Programmatic entry point for running OpenRewrite recipes from library code.

Link copied to clipboard
interface RunnerLogger
Link copied to clipboard
data class RunResult(val results: List<Result>, val changedFiles: List<Path>, val projectDir: Path, val rawDiffs: Map<Path, String> = emptyMap(), val executionDiagnostics: ExecutionDiagnostics)

The result of a single RewriteRunner invocation.

Link copied to clipboard

Which path produced the recipe run (and the classpath behind it, when applicable).