saker.maven.classpath Documentation TaskDoc JavaDoc Packages

Localized artifacts

The saker.maven.classpath() task can take the result of the saker.maven.localize() task as its input:

saker.java.compile(
	SourceDirectories: src,
	ClassPath: saker.maven.classpath(saker.maven.localize([
		"junit:junit:4.12",
		"org.slf4j:slf4j-api:1.7.19"
	]))
)

This works the same way as Artifact classpath, but you don't have to specify the artifact coordinates multiple times.

If you localize the artifacts separately, the use-case can be simplified:

$artifactloc = saker.maven.localize([
	"junit:junit:4.12",
	"org.slf4j:slf4j-api:1.7.19"
])
saker.java.compile(
	SourceDirectories: src,
	ClassPath: saker.maven.classpath($artifactloc)
)