fix consumer project import

This commit is contained in:
moehreag 2024-07-01 19:05:11 +02:00
parent b6b212fdd9
commit dc570b9331
2 changed files with 5 additions and 3 deletions

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)
}
}