# manifest

open fun manifest(@DelegatesTo(value = Manifest::class) configureClosure: Closure<out Any>): Jar(source)

Configures the manifest for this JAR archive.

The given closure is executed to configure the manifest. The org.gradle.api.java.archives.Manifest is passed to the closure as its delegate.

#### Return

This.

#### Parameters

configureClosure

The closure.

open fun manifest(configureAction: Action<in Manifest>): Jar(source)

Configures the manifest for this JAR archive.

The given action is executed to configure the manifest.

    plugins {
        id 'java'
    }

    def buildNumber = providers.gradleProperty('buildNumber').orElse('0')

    tasks.named('jar', Jar) {
        manifest {
            attributes('Build-Number': buildNumber)
        }
    }

Content copied to clipboard

#### Return

This.

#### Since

3.5

#### Parameters

configureAction

The action.

#### See also

Manifest

@get:Internal
open var manifest: Manifest(source)