api / org.gradle.jvm.tasks / Jar / metaInf

metaInf

open fun metaInf(configureClosure: Closure<*>): CopySpec

Adds content to this JAR archive's META-INF directory.

The given closure is executed to configure a CopySpec. The org.gradle.api.file.CopySpec is passed to the closure as its delegate.

Parameters

configureClosure - The closure.

Return
The created CopySpec

open fun metaInf(configureAction: Action<in CopySpec>): CopySpec

Adds content to this JAR archive's META-INF directory.

The given action is executed to configure a CopySpec.

Parameters

configureAction - The action.

Return
The created CopySpec

Since
3.5