public final class JkRepoSet
extends java.lang.Object
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.
|
boolean |
contains(java.net.URL url) |
java.nio.file.Path |
get(JkCoordinate coordinate)
Retrieves directly the file embodying the specified the external dependency.
|
java.nio.file.Path |
get(java.lang.String coordinate) |
JkRepo |
getRepoConfigHavingUrl(java.lang.String url)
Return the individual repository from this set having the specified url.
|
java.util.List<JkRepo> |
getRepos() |
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(java.lang.String userName,
java.lang.String password,
JkFileSigner signer)
Creates a JkRepoSet for publishing on OSSRH
|
java.lang.String |
toString() |
JkRepoSet |
withDefaultSigner(JkFileSigner signer) |
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, JkFileSigner signer)
public JkRepo getRepoConfigHavingUrl(java.lang.String url)
null
if no such repository found.public java.util.List<JkRepo> getRepos()
public boolean contains(java.net.URL url)
public java.lang.String toString()
toString
in class java.lang.Object
public java.nio.file.Path get(JkCoordinate coordinate)
public java.nio.file.Path get(java.lang.String coordinate)
public JkRepoSet withDefaultSigner(JkFileSigner signer)