mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 12:42:26 +00:00
Fix universal jar missing Forge version (#10699)
This commit is contained in:
1 parent
fc80e30289
commit
17ce723edf
1 file changed
+8
-10
+8
-10
@@ -839,12 +839,19 @@ tasks.register('filterJarNewSRG', FilterNewJar).configure {
|
||||
blacklist = filterJarNew.blacklist
|
||||
}
|
||||
|
||||
tasks.named('universalJar').configure {
|
||||
tasks.named('universalJar', Jar) {
|
||||
dependsOn downloadCrowdin
|
||||
from zipTree(downloadCrowdin.dest).matching {
|
||||
include 'assets/forge/lang/*.json'
|
||||
}
|
||||
|
||||
final Map<String, String> replaceProperties = Map.of('forge_version', (String) version)
|
||||
inputs.properties replaceProperties
|
||||
|
||||
filesMatching(['META-INF/mods.toml']) {
|
||||
expand replaceProperties + [project: project]
|
||||
}
|
||||
|
||||
from(EXTRA_TXTS)
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
exclude '.cache'
|
||||
@@ -985,15 +992,6 @@ tasks.register('genAllData') {
|
||||
dependsOn 'forge_data', 'forge_test_data'
|
||||
}
|
||||
|
||||
tasks.named('processResources', ProcessResources) {
|
||||
final Map<String, String> replaceProperties = Map.of('forge_version', (String) version)
|
||||
inputs.properties replaceProperties
|
||||
|
||||
filesMatching(['META-INF/mods.toml']) {
|
||||
expand replaceProperties + [project: project]
|
||||
}
|
||||
}
|
||||
|
||||
if (project.hasProperty('UPDATE_MAPPINGS')) {
|
||||
extractRangeMap {
|
||||
sources.from sourceSets.test.java.srcDirs
|
||||
|
||||
Reference in new issue
Block a user