rework dsl, add mod configurations (remapped), add support for other mappings #3
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -151,7 +151,7 @@ abstract class PhytotelmaGradleExtensionImpl @Inject constructor(
|
|||
it.isCanBeConsumed = false
|
||||
}
|
||||
project.afterEvaluate {
|
||||
remapModDependencies(configuration)
|
||||
//remapModDependencies(configuration)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue