Specifies how the entries of multiple manifests should be merged together.
Type | Name and description |
---|---|
ManifestMergeSpec |
eachEntry(Action<? super ManifestMergeDetails> mergeAction) Adds an action to be applied to each key-value tuple in a merge operation. |
ManifestMergeSpec |
eachEntry(Closure<?> mergeAction) Adds an action to be applied to each key-value tuple in a merge operation. |
ManifestMergeSpec |
from(Object... mergePaths) Adds a merge path to a manifest that should be merged into the base manifest. |
Adds an action to be applied to each key-value tuple in a merge operation. If multiple merge paths are specified, the action is called for each key-value tuple of each merge operation. The given action is called with a ManifestMergeDetails as its parameter. Actions are executed in the order added.
mergeAction
- A merge action to be executed.Adds an action to be applied to each key-value tuple in a merge operation. If multiple merge paths are specified, the action is called for each key-value tuple of each merge operation. The given closure is called with a ManifestMergeDetails as its parameter. Actions are executed in the order added.
mergeAction
- The action to execute.Adds a merge path to a manifest that should be merged into the base manifest. A merge path can be either another Manifest or a path that is evaluated as per Project.files . If multiple merge paths are specified, the manifest are merged in the order in which they are added.
mergePaths
- The paths of manifests to be merged