api / org.gradle.api.java.archives / Manifest / from

from

abstract fun from(vararg mergePath: Any): Manifest

Specifies other manifests to be merged into this manifest. A merge path can either be another instance of org.gradle.api.java.archives.Manifest or a file path as interpreted by org.gradle.api.Project#files(Object...). The merge is not happening instantaneously. It happens either before writing or when #getEffectiveManifest() is called.

Return
this

abstract fun from(mergePath: Any, closure: Closure<*>): Manifest

Specifies other manifests to be merged into this manifest. A merge path is interpreted as described in #from(Object...). The merge is not happening instantaneously. It happens either before writing or when #getEffectiveManifest() is called. The closure configures the underlying org.gradle.api.java.archives.ManifestMergeSpec.

Return
this