public final class JkDependencyResolver
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
JkDependencyResolver |
andRepos(JkRepoSet repoSet) |
JkResolutionParameters |
getParams()
Returns the parameters of this dependency resolver.
|
JkRepoSet |
getRepos()
Returns the repositories the resolution is made on.
|
static JkDependencyResolver |
of() |
static JkDependencyResolver |
of(JkRepo repo1,
JkRepo... repos) |
static JkDependencyResolver |
of(JkRepoSet repos)
Creates a dependency resolver fetching module dependencies in the specified repos.
|
JkResolveResult |
resolve(JkDependencySet dependencies,
java.lang.Iterable<JkScope> scopes) |
JkResolveResult |
resolve(JkDependencySet dependencies,
JkScope... scopes)
Resolves the specified dependencies (dependencies declared as module) for the specified scopes.
|
java.lang.String |
toString() |
JkDependencyResolver |
withBasedir(java.nio.file.Path baseDir)
Returns an dependency resolver identical to this one but with specified the base directory.
|
JkDependencyResolver |
withModuleHolder(JkVersionedModule versionedModule)
The underlying dependency manager can cache the resolution on file ofSystem
for faster result.
|
JkDependencyResolver |
withParams(JkResolutionParameters params)
Returns an dependency resolver identical to this one but with the specified repositories.
|
JkDependencyResolver |
withRepos(JkRepo repo,
JkRepo... otherRepos) |
JkDependencyResolver |
withRepos(JkRepoSet otherRepos)
Returns an dependency resolver identical to this one but with the specified repositories.
|
public static JkDependencyResolver of(JkRepoSet repos)
JkRepo
then the created.public static JkDependencyResolver of(JkRepo repo1, JkRepo... repos)
public static JkDependencyResolver of()
public JkRepoSet getRepos()
public JkResolveResult resolve(JkDependencySet dependencies, java.lang.Iterable<JkScope> scopes)
resolve(JkDependencySet, JkScope...)
public JkResolveResult resolve(JkDependencySet dependencies, JkScope... scopes)
dependencies
- the dependencies to resolve.scopes
- scope for resolution (compile, runtime, ...). If no scope is specified, then it is resolved for all scopes.public JkDependencyResolver withModuleHolder(JkVersionedModule versionedModule)
public JkDependencyResolver withRepos(JkRepoSet otherRepos)
public JkDependencyResolver withRepos(JkRepo repo, JkRepo... otherRepos)
withRepos(JkRepoSet)
public JkDependencyResolver andRepos(JkRepoSet repoSet)
withRepos(JkRepoSet)
public JkDependencyResolver withParams(JkResolutionParameters params)
public JkDependencyResolver withBasedir(java.nio.file.Path baseDir)
JkFileSystemDependency
. This directory is used by
resolve(JkDependencySet, JkScope...)
method as it returns only absolute files.public JkResolutionParameters getParams()
public java.lang.String toString()
toString
in class java.lang.Object