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

## org.gradle.api.artifacts
Interface IvyObjectBuilder

    interface IvyObjectBuilder

A `IvyObjectBuilder` builds Ivy domain objects of type `T`. You can influence the construction of the Ivy objects by adding transformers to this builder. A transformer can either be a closure, or a Transformer implementation. The transformers are called in the order added.

Method Summary
`void` | `addIvyTransformer(Transformer transformer)` Adds a transformer to this builder.
`void` | `addIvyTransformer(Closure transformer)` Adds a transformation closure to this builder.

Method Detail

### addIvyTransformer

    public void addIvyTransformer(Transformer transformer)

  Adds a transformer to this builder.

  param:
    transformer The transformer to add.

### addIvyTransformer

    public void addIvyTransformer(Closure transformer)

  Adds a transformation closure to this builder. The closure is passed the object to transform as a parameter. The closure can return an object of type T, which will be used as the transformed value. The object to transform is also set as the delegate of the closure.

  param:
    transformer The transformation closure to add.

Groovy Documentation