ResolutionRules (Gradle API 2.9)
Date: 2015-11-17

Package: org.gradle.api.artifacts.cache

## [Java] Interface ResolutionRules

- Represents a set of rules/actions that can be applied during dependency resolution. Currently these are restricted to controlling caching, but these could possibly be extended in the future to include other manipulations.

- - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `void` | `eachArtifact(Action<? super ArtifactResolutionControl> rule)` Apply a rule to control resolution of artifacts.
    `void` | `eachDependency(Action<? super DependencyResolutionControl> rule)` Apply a rule to control resolution of dependencies.
    `void` | `eachModule(Action<? super ModuleResolutionControl> rule)` Apply a rule to control resolution of modules.

- - ### Method Detail

    - #### public void eachArtifact(Action<? super ArtifactResolutionControl> rule)

      Apply a rule to control resolution of artifacts.

      Parameters:
        `rule` - the rule to apply

    - #### public void eachDependency(Action<? super DependencyResolutionControl> rule)

      Apply a rule to control resolution of dependencies.

      Parameters:
        `rule` - the rule to apply

    - #### public void eachModule(Action<? super ModuleResolutionControl> rule)

      Apply a rule to control resolution of modules.

      Parameters:
        `rule` - the rule to apply