public final class JkRepoSet
extends java.lang.Object
implements java.io.Serializable
JkRepo
Modifier and Type | Method and Description |
---|---|
JkRepoSet |
and(JkRepo other)
Returns a repo identical to this one but with the extra specified repository.
|
JkRepoSet |
and(JkRepoSet other)
Returns a merge of this repository and the specified one.
|
java.nio.file.Path |
get(JkModuleDependency moduleDependency)
Retrieves directly the file embodying the specified the external dependency.
|
java.nio.file.Path |
get(JkModuleId moduleId,
java.lang.String version)
Short hand for
get(JkModuleDependency) |
java.nio.file.Path |
get(java.lang.String moduleGroupVersion)
Short hand for
get(JkModuleDependency) |
JkRepo |
getRepoConfigHavingUrl(java.lang.String url)
Return the individual repository from this set having the specified url.
|
java.util.List<JkRepo> |
getRepoList() |
boolean |
hasIvyRepo() |
static JkRepoSet |
of(java.lang.Iterable<JkRepo> configs)
Creates a repository set from the specified configurations.
|
static JkRepoSet |
of(JkRepo repo,
JkRepo... others)
Creates a repository set from the specified configurations.
|
static JkRepoSet |
of(java.lang.String... urls)
|
static JkRepoSet |
ofLocal() |
static JkRepoSet |
ofOssrhSnapshotAndRelease()
Creates a JkRepoSet for downloading from OSSRH
|
static JkRepoSet |
ofOssrhSnapshotAndRelease(java.lang.String userName,
java.lang.String password)
Creates a JkRepoSet for publishing on OSSRH
|
java.lang.String |
toString() |
public static JkRepoSet of(java.lang.Iterable<JkRepo> configs)
public static JkRepoSet of(JkRepo repo, JkRepo... others)
public static JkRepoSet of(java.lang.String... urls)
public JkRepoSet and(JkRepo other)
public static JkRepoSet ofLocal()
public static JkRepoSet ofOssrhSnapshotAndRelease(java.lang.String userName, java.lang.String password)
public static JkRepoSet ofOssrhSnapshotAndRelease()
public JkRepo getRepoConfigHavingUrl(java.lang.String url)
null
if no such repository found.public java.util.List<JkRepo> getRepoList()
public boolean hasIvyRepo()
public java.lang.String toString()
toString
in class java.lang.Object
public java.nio.file.Path get(JkModuleDependency moduleDependency)
public java.nio.file.Path get(JkModuleId moduleId, java.lang.String version)
get(JkModuleDependency)
public java.nio.file.Path get(java.lang.String moduleGroupVersion)
get(JkModuleDependency)