Add common manifest properties to all JARs, not just Forge.

This commit is contained in:
Tyler Hancock 2021-09-28 02:33:31 -06:00
parent d4e9a8dd17
commit 6ae7d10805
No known key found for this signature in database
GPG Key ID: D10D32949D03E695
2 changed files with 21 additions and 12 deletions

View File

@ -76,18 +76,6 @@ dependencies {
jar {
dependsOn ":Common:compileJava"
from project(":Common").sourceSets.main.output
manifest {
attributes([
"Specification-Title" : mod_name,
"Specification-Vendor" : mod_author,
"Specification-Version" : "1",
"Implementation-Title" : project.name,
"Implementation-Version" : project.jar.archiveVersion,
"Implementation-Vendor" : mod_author,
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}

View File

@ -0,0 +1,21 @@
subprojects {
apply plugin: 'java'
jar {
manifest {
attributes([
'Specification-Title' : mod_name,
'Specification-Vendor' : mod_author,
'Specification-Version' : project.jar.archiveVersion,
'Implementation-Title' : project.name,
'Implementation-Version' : project.jar.archiveVersion,
'Implementation-Vendor' : mod_author,
'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
'Timestampe' : System.currentTimeMillis(),
'Built-On-Java' : "${System.getProperty('java.vm.version')} (${System.getProperty('java.vm.vendor')})",
'Build-On-Minecraft' : minecraft_version
])
}
}
}