Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD

## org.gradle.api.artifacts
[Java] Interface ResolutionStrategy

    public interface ResolutionStrategy

Defines the strategies around forcing certain dependency versions or conflict resolutions. Example:

     configurations.all {
       //fail eagerly on conflict
       resolutionStrategy.conflictResolution = resolutionStrategy.strict()
     }

Method Summary
`void` | `force(java.lang.String forcedVersions)` Configures forced versions in DSL friendly fashion
`ConflictResolution` | `getConflictResolution()` gets current conflict resolution
`java.util.Set` | `getForcedVersions()` returns currently configured forced versions
`ConflictResolution` | `latest()` use the latest of conflicting versions and move on
`void` | `setConflictResolution(ConflictResolution conflictResolution)` configures conflict resolution
`ConflictResolution` | `strict()` fail eagerly on conflict

Method Detail

### force

    public void force(java.lang.String forcedVersions)

  Configures forced versions in DSL friendly fashion
  Parameters:
    `forcedVersions` - gav notations

### getConflictResolution

    public ConflictResolution getConflictResolution()

  gets current conflict resolution
  Returns:
    conflict resolution

### getForcedVersions

    public java.util.Set getForcedVersions()

  returns currently configured forced versions
  Returns:
    forced versions

### latest

    public ConflictResolution latest()

  use the latest of conflicting versions and move on

### setConflictResolution

    public void setConflictResolution(ConflictResolution conflictResolution)

  configures conflict resolution
  Parameters:
    `conflictResolution` - to set

### strict

    public ConflictResolution strict()

  fail eagerly on conflict

Groovy Documentation