mirror of https://github.com/FabricMC/yarn.git
Add mc version id into jar manifest (#2948)
This commit is contained in:
parent
204202f752
commit
057596f268
|
@ -545,6 +545,9 @@ task tinyJar(type: Jar, dependsOn: mergeTiny) {
|
||||||
from(mergeTiny.output) {
|
from(mergeTiny.output) {
|
||||||
rename { "mappings/mappings.tiny" }
|
rename { "mappings/mappings.tiny" }
|
||||||
}
|
}
|
||||||
|
manifest {
|
||||||
|
attributes("Minecraft-Version-Id": minecraft_version)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task compressTiny(dependsOn: [tinyJar, mergeTiny], type: FileOutput) {
|
task compressTiny(dependsOn: [tinyJar, mergeTiny], type: FileOutput) {
|
||||||
|
@ -777,6 +780,9 @@ task v2UnmergedYarnJar(dependsOn: [insertAutoGeneratedEnumMappings, combineUnpic
|
||||||
rename unpickMetaFile.name, "extras/unpick.json"
|
rename unpickMetaFile.name, "extras/unpick.json"
|
||||||
}
|
}
|
||||||
destinationDirectory.set(file("build/libs"))
|
destinationDirectory.set(file("build/libs"))
|
||||||
|
manifest {
|
||||||
|
attributes("Minecraft-Version-Id": minecraft_version)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task v2MergedYarnJar(dependsOn: ["mergeV2"], type: Jar) {
|
task v2MergedYarnJar(dependsOn: ["mergeV2"], type: Jar) {
|
||||||
|
@ -796,6 +802,9 @@ task v2MergedYarnJar(dependsOn: ["mergeV2"], type: Jar) {
|
||||||
rename unpickMetaFile.name, "extras/unpick.json"
|
rename unpickMetaFile.name, "extras/unpick.json"
|
||||||
}
|
}
|
||||||
destinationDirectory.set(file("build/libs"))
|
destinationDirectory.set(file("build/libs"))
|
||||||
|
manifest {
|
||||||
|
attributes("Minecraft-Version-Id": minecraft_version)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def fakeSourceDir = file(".gradle/temp/fakeSource")
|
def fakeSourceDir = file(".gradle/temp/fakeSource")
|
||||||
|
|
Loading…
Reference in New Issue