Package dev.jeka.core.api.depmanagement
Class JkRepoSet
java.lang.Object
dev.jeka.core.api.depmanagement.JkRepoSet
A set of
JkRepo-
Method Summary
Modifier and TypeMethodDescriptionReturns a repo identical to this one but with the extra specified repository.Returns a merge of this repository and the specified one.booleanChecks if the specified URL is present in the repository set.findVersionsOf(String moduleId) Finds the available versions of a given module identifier from the configured repositories.get(JkCoordinate coordinate) Retrieves directly the file embodying the specified the external dependency.Retrieves the file associated with the specified dependency coordinate.Return the individual repository from this set having the specified url.getRepos()Returns the list of repositories configured in this repository set.static JkRepoSetCreates a repository set from the specified configurations.static JkRepoSetCreates a repository set from the specified configurations.static JkRepoSetstatic JkRepoSetofLocal()static JkRepoSetofOssrhSnapshotAndRelease(String userName, String password, JkFileSigner signer) Creates a JkRepoSet for publishing on OSSRHReturns an immutable copy of this repository set, ensuring that the underlying repositories are also marked as read-only.toString()toStringMultiline(String margin) withDefaultSigner(JkFileSigner signer)
-
Method Details
-
of
Creates a repository set from the specified configurations. -
of
Creates a repository set from the specified configurations. -
of
-
and
Returns a repo identical to this one but with the extra specified repository. -
and
Returns a merge of this repository and the specified one. -
ofLocal
-
ofOssrhSnapshotAndRelease
public static JkRepoSet ofOssrhSnapshotAndRelease(String userName, String password, JkFileSigner signer) Creates a JkRepoSet for publishing on OSSRH -
getRepoConfigHavingUrl
Return the individual repository from this set having the specified url. Returnsnullif no such repository found. -
getRepos
Returns the list of repositories configured in this repository set. -
contains
Checks if the specified URL is present in the repository set. -
toString
-
toStringMultiline
-
toReadonly
Returns an immutable copy of this repository set, ensuring that the underlying repositories are also marked as read-only. -
get
Retrieves directly the file embodying the specified the external dependency. -
get
Retrieves the file associated with the specified dependency coordinate. Delegates toget(JkCoordinate)by constructing aJkCoordinatefrom the given string representation.- Parameters:
coordinate- the string representation of the dependency coordinate to resolve- Returns:
- the path to the resolved file, or
nullif the dependency cannot be resolved
-
withDefaultSigner
-
findVersionsOf
Finds the available versions of a given module identifier from the configured repositories. Iterates through the repository set and returns the versions found in the first repository that contains the module versions. If no versions are found in any repository, it returns an empty list.- Parameters:
moduleId- the identifier of the module whose versions are to be retrieved- Returns:
- a list of versions available for the specified module identifier, or an empty list if none are found
-