api / org.gradle.api.java.archives / ManifestMergeSpec

ManifestMergeSpec

interface ManifestMergeSpec

Specifies how the entries of multiple manifests should be merged together.

Functions

eachEntry

abstract fun eachEntry(mergeAction: Action<in ManifestMergeDetails>): ManifestMergeSpec

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 org.gradle.api.java.archives.ManifestMergeDetails as its parameter. Actions are executed in the order added.

abstract fun eachEntry(mergeAction: Closure<*>): ManifestMergeSpec

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 org.gradle.api.java.archives.ManifestMergeDetails as its parameter. Actions are executed in the order added.

from

abstract fun from(vararg mergePaths: Any): ManifestMergeSpec

Adds a merge path to a manifest that should be merged into the base manifest. A merge path can be either another org.gradle.api.java.archives.Manifest or a path that is evaluated as per org.gradle.api.Project#files(Object...) . If multiple merge paths are specified, the manifest are merged in the order in which they are added.

getContentCharset

abstract fun getContentCharset(): String

The character set used to decode the merged manifest content. Defaults to UTF-8.

setContentCharset

abstract fun setContentCharset(contentCharset: String): Unit

The character set used to decode the merged manifest content.