Skip to content

Latest commit

 

History

History
51 lines (42 loc) · 907 Bytes

manifest.md

File metadata and controls

51 lines (42 loc) · 907 Bytes

manifest property

manifest property allows adding additional manifest entries and sections.

Maven

<manifest>
    <additionalEntries>
    	<Created-By>Peter</Created-By>
    </additionalEntries>
    <sections>
        <section>
            <name>foo/</name>
            <entries>
            	<Implementation-Version>foo1</Implementation-Version>
            </entries>
        </section>
    </sections>
</manifest>

Gradle

manifest {
    additionalEntries = [
    	'Created-By': 'Peter'
    ]
    sections = [
        new io.github.fvarrui.javapackager.model.ManifestSection ([
            name: "foo/",
            entries: [
            	'Implementation-Version': 'foo1'
            ]
        ])
    ]
}

Result

Both produce the following MANIFEST.MF file:

Manifest-Version: 1.0
Created-By: Peter

Name: foo/
Implementation-Version: foo1