fix consumer project import
This commit is contained in:
parent
b6b212fdd9
commit
dc570b9331
|
@ -42,6 +42,7 @@ abstract class MinecraftConfiguration @Inject constructor(
|
||||||
conf.version = ParchmentProvider.findForMinecraftVersion(conf.gameVersion)
|
conf.version = ParchmentProvider.findForMinecraftVersion(conf.gameVersion)
|
||||||
}
|
}
|
||||||
mappingsName = "mojmap($version)+parchment(${conf.gameVersion}, ${conf.version})"
|
mappingsName = "mojmap($version)+parchment(${conf.gameVersion}, ${conf.version})"
|
||||||
|
targetNamespace = "mojmap"
|
||||||
|
|
||||||
return@provider MappingBundle.merge(
|
return@provider MappingBundle.merge(
|
||||||
MojmapProvider.get(
|
MojmapProvider.get(
|
||||||
|
@ -52,7 +53,7 @@ abstract class MinecraftConfiguration @Inject constructor(
|
||||||
version,
|
version,
|
||||||
cacheDir.resolve("org/parchmentmc/parchment/${conf.gameVersion}/${conf.version}")
|
cacheDir.resolve("org/parchmentmc/parchment/${conf.gameVersion}/${conf.version}")
|
||||||
)
|
)
|
||||||
)
|
).renameDstNamespace(targetNamespace)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,10 +61,11 @@ abstract class MinecraftConfiguration @Inject constructor(
|
||||||
return project.provider {
|
return project.provider {
|
||||||
val cacheDir = PhytotelmaPlugin.globalCacheDir
|
val cacheDir = PhytotelmaPlugin.globalCacheDir
|
||||||
mappingsName = "mojmap($version)"
|
mappingsName = "mojmap($version)"
|
||||||
|
targetNamespace = "mojmap"
|
||||||
return@provider MojmapProvider.get(
|
return@provider MojmapProvider.get(
|
||||||
version,
|
version,
|
||||||
cacheDir.resolve("net/minecraft/client/$version/client-$version.txt")
|
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
|
it.isCanBeConsumed = false
|
||||||
}
|
}
|
||||||
project.afterEvaluate {
|
project.afterEvaluate {
|
||||||
remapModDependencies(configuration)
|
//remapModDependencies(configuration)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue