Add common manifest properties to all JARs, not just Forge.
This commit is contained in:
parent
d4e9a8dd17
commit
6ae7d10805
|
|
@ -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")
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
21
build.gradle
21
build.gradle
|
|
@ -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
|
||||
])
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user