public final class JkRepo
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
JkRepo.JkPublishConfig
Configuration specific to publishing.
|
static class |
JkRepo.JkRepoCredential |
static class |
JkRepo.JkRepoIvyConfig
Configuration specific to Ivy.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JCENTERL_URL
URL of the JCenter ivy repository.
|
static java.lang.String |
MAVEN_CENTRAL_URL
URL of the Maven central repository.
|
static java.lang.String |
MAVEN_OSSRH_DEPLOY_RELEASE
URL of the OSSRH repository for deploying released artifacts.
|
static java.lang.String |
MAVEN_OSSRH_DOWNLOAD_AND_DEPLOY_SNAPSHOT
URL of the OSSRH repository for both deploying snapshot and download artifacts.
|
static java.lang.String |
MAVEN_OSSRH_DOWNLOAD_RELEASE
URL for the OSSRH repository for downloading released artifacts.
|
static java.lang.String |
MAVEN_OSSRH_PUBLIC_DOWNLOAD_RELEASE_AND_SNAPSHOT
URL of the OSSRH repository for downloading both snapshot and released artifacts.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
JkRepo.JkRepoCredential |
getCredential()
Returns the getRealm of this repository.
|
JkRepo.JkRepoIvyConfig |
getIvyConfig()
Returns configuration specific to Ivy repository.
|
JkRepo.JkPublishConfig |
getPublishConfig() |
java.net.URL |
getUrl()
Returns the url of this repository.
|
boolean |
hasCredentials()
Returns
true if some credential has been set on this repository. |
int |
hashCode() |
boolean |
isIvyRepo() |
static JkRepo |
of(java.lang.String url)
Creates a repository having the specified url.
|
static JkRepo |
ofIvy(java.nio.file.Path dir)
Creates a Ivy repository having the specified file location.
|
static JkRepo |
ofLocal()
Creates a Maven repository for publishing locally under
[USER HOME]/.jerkar/publish folder. |
static JkRepo |
ofMaven(java.nio.file.Path dir)
Creates a Maven repository having the specified file location.
|
static JkRepo |
ofMavenCentral()
Creates the Maven central repository.
|
static JkRepo |
ofMavenJCenter()
Creates a JCenter repository.
|
static JkRepo |
ofMavenOssrhDeployRelease(java.lang.String jiraId,
java.lang.String jiraPassword)
Creates an OSSRH repository for deploying released artifacts.
|
static JkRepo |
ofMavenOssrhDownloadAndDeploySnapshot(java.lang.String jiraId,
java.lang.String jiraPassword)
Creates an OSSRH repository for both deploying snapshot and download artifacts.
|
static JkRepo |
ofMavenOssrhPublicDownload()
Creates a OSSRH repository for downloading both snapshot and released artifacts.
|
JkRepoSet |
toSet() |
java.lang.String |
toString() |
JkRepo |
with(JkRepo.JkPublishConfig publishConfig) |
JkRepo |
with(JkRepo.JkRepoCredential credential)
Returns a copy of this repository but having the specified credentials.
|
JkRepo |
withOptionalCredentials(java.lang.String username,
java.lang.String password) |
public static final java.lang.String MAVEN_CENTRAL_URL
public static final java.lang.String MAVEN_OSSRH_DOWNLOAD_AND_DEPLOY_SNAPSHOT
public static final java.lang.String MAVEN_OSSRH_DOWNLOAD_RELEASE
public static final java.lang.String MAVEN_OSSRH_DEPLOY_RELEASE
public static final java.lang.String MAVEN_OSSRH_PUBLIC_DOWNLOAD_RELEASE_AND_SNAPSHOT
public static final java.lang.String JCENTERL_URL
public static JkRepo of(java.lang.String url)
ivy:
as ivy:http://myrepolocation
.
If specified url is "local" then it returns the local repository.public static JkRepo ofMaven(java.nio.file.Path dir)
public static JkRepo ofIvy(java.nio.file.Path dir)
public static JkRepo ofMavenCentral()
public static JkRepo ofMavenOssrhDownloadAndDeploySnapshot(java.lang.String jiraId, java.lang.String jiraPassword)
public static JkRepo ofMavenOssrhDeployRelease(java.lang.String jiraId, java.lang.String jiraPassword)
public static JkRepo ofMavenOssrhPublicDownload()
public static JkRepo ofMavenJCenter()
public static JkRepo ofLocal()
[USER HOME]/.jerkar/publish folder.public final java.net.URL getUrl()
public boolean hasCredentials()
true
if some credential has been set on this repository.public JkRepo.JkRepoIvyConfig getIvyConfig()
null
if this configuration stands
for a Maven repository.public boolean isIvyRepo()
public final JkRepo.JkRepoCredential getCredential()
public JkRepo.JkPublishConfig getPublishConfig()
public JkRepo with(JkRepo.JkRepoCredential credential)
public JkRepo withOptionalCredentials(java.lang.String username, java.lang.String password)
public JkRepo with(JkRepo.JkPublishConfig publishConfig)
public JkRepoSet toSet()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object