rework dsl, add mod configurations (remapped), add support for other mappings #3

Merged
Ecorous merged 11 commits from owlsys/other-mappings into mistress 2024-07-04 14:39:40 -04:00
2 changed files with 5 additions and 3 deletions
Showing only changes of commit dc570b9331 - Show all commits

View file

@ -42,6 +42,7 @@ abstract class MinecraftConfiguration @Inject constructor(
conf.version = ParchmentProvider.findForMinecraftVersion(conf.gameVersion)
}
mappingsName = "mojmap($version)+parchment(${conf.gameVersion}, ${conf.version})"
targetNamespace = "mojmap"
return@provider MappingBundle.merge(
MojmapProvider.get(
@ -52,7 +53,7 @@ abstract class MinecraftConfiguration @Inject constructor(
version,
cacheDir.resolve("org/parchmentmc/parchment/${conf.gameVersion}/${conf.version}")
)
)
).renameDstNamespace(targetNamespace)
}
}
@ -60,10 +61,11 @@ abstract class MinecraftConfiguration @Inject constructor(
return project.provider {
val cacheDir = PhytotelmaPlugin.globalCacheDir
mappingsName = "mojmap($version)"
targetNamespace = "mojmap"
return@provider MojmapProvider.get(
version,
cacheDir.resolve("net/minecraft/client/$version/client-$version.txt")
).orElseThrow().reverse()
).orElseThrow().reverse().renameDstNamespace(targetNamespace)
}
}

View file

@ -151,7 +151,7 @@ abstract class PhytotelmaGradleExtensionImpl @Inject constructor(
it.isCanBeConsumed = false
}
project.afterEvaluate {
remapModDependencies(configuration)
//remapModDependencies(configuration)
}
}