Fix universal jar missing Forge version (#10699)

This commit is contained in:
Jonathing authored and GitHub committed 2025-10-20 00:41:21 +01:00
1 parent fc80e30289
commit 17ce723edf
1 file changed
+8 -10
+8 -10
View File
@@ -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