Skip to content

Commit

Permalink
Populate manifest with additional metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
sbesson committed May 27, 2024
1 parent 8481a46 commit f28e436
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,15 @@ dependencies {
jar {
manifest {
attributes(
"Main-Class": mainClassName,
"Implementation-Version": version
"Created-By": "Gradle ${gradle.gradleVersion}",
"Build-Jdk": "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
"Built-By": System.properties['user.name'],
"Built-On": new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
"Implementation-Build": "git rev-parse --verify HEAD".execute().getText().trim(),
"Implementation-Title": "OME OMERO ROI tool",
"Implementation-Version": archiveVersion,
"Implementation-Vendor": "Glencoe Software Inc.",
"Main-Class": mainClassName
)
}
}
Expand Down

0 comments on commit f28e436

Please sign in to comment.