Skip to content

Package io.github.qishr.cascara.common.exec

Class ArtifactResolver

java.lang.Object
        io.github.qishr.cascara.common.exec.ArtifactResolver


@io.github.qishr.cascara.common.annotation.Experimental
public final class ArtifactResolver

Method Summary

Modifier and Type Method Description
public static Pair<String, String> buildModulePath(List<String> dependencies, String subprojectName)
public static Path getProjectPath()
public static Path getRootProjectPath()
public static Path getModulepathDir()
public static Path getModulepathDir(Path projectPath)
public static Path resolveJarPath(String mavenName) Dynamically locates the compiled module JAR file by traversing up from the test class's location (handling both bin/ and build/ structures).
public static Path resolveJarPath(String mavenName, String subprojectName)

Method Details

buildModulePath

public static Pair<String, String> buildModulePath(List<String> dependencies, String subprojectName)


getProjectPath

public static Path getProjectPath()


getRootProjectPath

public static Path getRootProjectPath()


getModulepathDir

public static Path getModulepathDir()


getModulepathDir

public static Path getModulepathDir(Path projectPath)


resolveJarPath

public static Path resolveJarPath(String mavenName)

Dynamically locates the compiled module JAR file by traversing up from the test class's location (handling both bin/ and build/ structures).


resolveJarPath

public static Path resolveJarPath(String mavenName, String subprojectName)