Serializable
, Comparable<RepositoriesMode>
@Incubating public enum RepositoriesMode extends Enum<RepositoriesMode>
Enum Constant | Description |
---|---|
FAIL_ON_PROJECT_REPOS |
If this mode is set, any repository declared directly in a project,
either directly or via a plugin, will trigger a build error.
|
PREFER_PROJECT |
If this mode is set, any repository declared on a project will cause
the project to use the repositories declared by the project, ignoring
those declared in settings.
|
PREFER_SETTINGS |
If this mode is set, any repository declared directly in a project,
either directly or via a plugin, will be ignored.
|
Modifier and Type | Method | Description |
---|---|---|
static RepositoriesMode |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static RepositoriesMode[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RepositoriesMode PREFER_PROJECT
public static final RepositoriesMode PREFER_SETTINGS
public static final RepositoriesMode FAIL_ON_PROJECT_REPOS
public static RepositoriesMode[] values()
for (RepositoriesMode c : RepositoriesMode.values()) System.out.println(c);
public static RepositoriesMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null