DSL support to allow build scripts to configure the repos to be used for fetching dependencies and publishing artifacts produced by the build.
| Modifiers | Name | Description |
|---|---|---|
static class |
RepoManagement.RepoConfig |
Base repo configuration. |
| Constructor and description |
|---|
RepoManagement
(org.gradle.api.Project project) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
ctiPrivate(java.util.Map props)Add a CTI Private repo configuration accepting a map of configuration properties. |
|
void |
ctiPublic(java.util.Map props)Add a CTI Public repo configuration accepting a map of configuration properties. |
|
void |
di2eCentral(java.util.Map props)Add a DI2E Central configuration accepting a map of configuration properties. |
|
void |
di2ePrivate(java.util.Map props)Add a DI2E private repo configuration accepting a map of configuration properties. |
|
void |
di2eRaptorx(java.util.Map props)Add a DI2E RaptorX configuration accepting a map of configuration properties. |
|
RepoManagement.RepoConfig |
getCtiPrivate(java.lang.String name)@param name The name of the repo to find |
|
RepoManagement.RepoConfig |
getCtiPublic(java.lang.String name)@param name The name of the repo to find |
|
RepoManagement.RepoConfig |
getDi2eCentral()
|
|
RepoManagement.RepoConfig |
getDi2ePrivate(java.lang.String name)@param name The name of the repo to find |
|
RepoManagement.RepoConfig |
getDi2eRaptorx()
|
|
java.util.List<RepoConfig> |
getPublishingRepoConfigs()@return All repo configurations where 'publish' is set true |
|
java.util.List<RepoConfig> |
getRepoConfigs()@return All repo configurations |
|
RepoManagement.RepoConfig |
getTakx()
|
|
void |
google()Include google( ) in the repository configuration. |
|
boolean |
includeGoogle()@return true if google should be included in the repository configuration |
|
boolean |
includeMavenLocal()@return true if maven local should be included in the repository configuration,
false if the noMavenLocal() configuration has been specified. |
|
void |
noMavenLocal()Disallow the use of maven local for dependency resolution. |
|
void |
raptorx(java.util.Map props)Retained for backward compatibility. |
|
void |
takx(java.util.Map props)Add the TAKX configuration accepting a map of configuration properties. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Add a CTI Private repo configuration accepting a map of configuration properties. Supported properties are:
name - The name/tag of the repo. This is used to determine repo URLspublish - boolean value, true if publishing should be configured for this repo, default falseusername - (optional) specify a username for this repopassword - (optional) specify a password for this repoprops - Configuration propertiesAdd a CTI Public repo configuration accepting a map of configuration properties. Supported properties are:
name - The name/tag of the repo. This is used to determine repo URLspublish - boolean value, true if publishing should be configured for this repo, default falseusername - (optional) specify a username for this repopassword - (optional) specify a password for this repopublicRepoUsername and
publicRepoPassword. The environment variables used are CTI_PUBLIC_NEXUS_USERNAME and
CTI_PUBLIC_NEXUS_PASSWORD.
props - Configuration propertiesAdd a DI2E Central configuration accepting a map of configuration properties. Supported properties are:
username - (optional) specify a username for this repopassword - (optional) specify a password for this repodi2eRepoUsername and di2eRepoPassword.
The environment variables DI2E_NEXUS_USERNAME and DI2E_NEXUS_PASSWORD can be used to specify
the repo access credentials.
props - Configuration propertiesAdd a DI2E private repo configuration accepting a map of configuration properties.
The pattern for the release repo is: [repoPrefix]_[name]_[releaseRepoSuffix]
The pattern for the snapshot repo is: [repoPrefix]_[name]_[snapshotRepoSuffix]
Supported properties are:
name - The name/tag of the repo. This is used to determine repo URLs and credentialspublish - boolean value, true if publishing should be configured for this repo, default falsenexus3 - (optional) boolean value, false (default) indicates publishing to a Nexus2 repo.
true indicates publishing to a Nexus3 repo. This is ignored if !publish. (since v0.7.3)snapshotRepoSuffix - (optional) String value, the repo suffix to use in lieu of default value ("Snapshots") (since v0.7.3)releaseRepoSuffix - (optional) String value, the repo suffix to use in lieu of default value ("Releases") (since v0.7.3)repoPrefix - (optional) String value, the repo prefix to use in lieu of default value ("Private") (since v0.7.3)username - (optional) String value, specify a username for this repopassword - (optional) String value, specify a password for this repo (NOT SECURE)[name]RepoUsername and
[name]RepoPassword, with a fallback to di2eRepoUsername and di2eRepoPassword.
The environment variables used are [name]_NEXUS_USERNAME and [name]_NEXUS_PASSWORD, with a fallback
to DI2E_NEXUS_USERNAME and DI2E_NEXUS_PASSWORD.
props - Configuration propertiesAdd a DI2E RaptorX configuration accepting a map of configuration properties. Supported properties are:
publish - boolean value, true if publishing should be configured for this repo, default falseusername - (optional) specify a username for this repopassword - (optional) specify a password for this repodi2eRepoUsername and di2eRepoPassword.
The environment variables DI2E_NEXUS_USERNAME and DI2E_NEXUS_PASSWORD can be used to specify
the repo access credentials.
props - Configuration properties
name - The name of the repo to find
name - The name of the repo to find
name - The name of the repo to find
Include google( ) in the repository configuration.
true if google should be included in the repository configuration
true if maven local should be included in the repository configuration,
false if the noMavenLocal() configuration has been specified.Disallow the use of maven local for dependency resolution.
Retained for backward compatibility. Issues a warning and then redirects to configure di2eRaptorx.
props - Configuration propertiesAdd the TAKX configuration accepting a map of configuration properties. Supported properties are:
publish - boolean value, true if publishing should be configured for this repo, default falseusername - (optional) specify a username for this repopassword - (optional) specify a password for this repotakRepoUsername and takRepoPassword.
The environment variables TAK_USERNAME and TAK_PASSWORD can be used to specify
the repo access credentials.
props - Configuration properties