Skip to content

Conversation

@bluecontainer
Copy link

When a gradle project has configuration like this:

jar {
    manifest {
        attributes(
            "Implementation-Title": "Some Application",
            "Implementation-Version": archiveVersion,
            "Main-Class": application.mainClass,
            'Built-By'       : System.properties['user.name'],
            'Build-Timestamp': new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
			'Build-Revision' : "${versionDetails().branchName}-${versionDetails().gitHashFull}",
            'Created-By'     : "Gradle ${gradle.gradleVersion}",
            'Build-Jdk'      : "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
            'Build-OS'       : "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}"
        )
    }
	zip64 = true
}

I want the jar produced by the micronaut plugin "runnerJar" task to include the manifest attributes specified.

@CLAassistant
Copy link

CLAassistant commented Aug 26, 2025

CLA assistant check
All committers have signed the CLA.

@bluecontainer bluecontainer force-pushed the runnerjar-manifest-from-jar branch from ac6f6be to 4d9ca74 Compare August 27, 2025 19:58
@melix
Copy link
Collaborator

melix commented Sep 29, 2025

Thanks for the contribution. Would you mind adding a test for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants