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(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> |
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,
java.util.function.UnaryOperator<java.nio.file.Path> signer)
Creates a JkRepoSet for publishing on OSSRH
|
java.lang.String |
toString() |
JkRepoSet |
withDefaultSigner(java.util.function.UnaryOperator<java.nio.file.Path> 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, java.util.function.UnaryOperator<java.nio.file.Path> 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(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)
public JkRepoSet withDefaultSigner(java.util.function.UnaryOperator<java.nio.file.Path> signer)