public interface GemCoopRepositoryConfiguration extends GemRepositoryConfiguration
gem.coop repositories.| Modifier and Type | Method and Description |
|---|---|
void |
setCooldown(boolean cooldown)
Use cooldown mode.
|
void |
setGroup(java.lang.String group)
Override the default group name.
|
void |
setNamespace(java.lang.String ns)
Sets the
gem.coop namespace. |
setDownloadPattern, setPassword, setPrerelease, setUsername, setUseV1Apivoid setCooldown(boolean cooldown)
cooldown - Set to true to use cooldown mode.void setNamespace(java.lang.String ns)
gem.coop namespace.
See Namespaces for more details.
This also affects the group name used in dependency declarations.
If the namespace is xyz, then the group will be gemcoop.xyz.
Because we need to mimic Bundler behaviour without using Bundler itself in Gradle-based
JRuby projects, we use the maven group to resolve the package name from a specific repository.
The responsibility lies with the script author to order the repositories in the correct order as Gradle
does not detect that a package could be in two namespace.
It will always resolve the one it finds first.
Using the gourp name goes a long way to address that problem
ns - Namespace to usevoid setGroup(java.lang.String group)
This is used to set a group name if the default is not correct.
If there is no namespace defined, the default group is rubygems.
If a namespace is defined, the default group is gemcoop.<namespace>.
group - New group name.