fix mod dependency remapping timing

This commit is contained in:
moehreag 2024-07-02 20:37:47 +02:00
parent e54d40ee0a
commit 7fbcb37ed2

View file

@ -249,6 +249,10 @@ abstract class PhytotelmaGradleExtensionImpl @Inject constructor(
project.dependencies.add(target.name, "dev.frogmc.phytotelma.remapped_mods:$groupname:$version"+(classifier?.let { ":$it" }?:"")) project.dependencies.add(target.name, "dev.frogmc.phytotelma.remapped_mods:$groupname:$version"+(classifier?.let { ":$it" }?:""))
} }
} }
project.afterEvaluate {
remapModDependencies()
}
} }
override fun minecraft(action: Action<MinecraftConfiguration>) { override fun minecraft(action: Action<MinecraftConfiguration>) {
@ -308,8 +312,6 @@ abstract class PhytotelmaGradleExtensionImpl @Inject constructor(
AccessWidener.apply(project, remappedJar) AccessWidener.apply(project, remappedJar)
} }
} }
remapModDependencies()
} }
} }
@ -319,7 +321,7 @@ abstract class PhytotelmaGradleExtensionImpl @Inject constructor(
if (conf.version == null) { if (conf.version == null) {
error("No loader version provided!") error("No loader version provided!")
} }
project.dependencies.add(Constants.MINECRAFT_CONFIGURATION, "dev.frogmc:frogloader:${conf.version!!}") project.dependencies.add("implementation", "dev.frogmc:frogloader:${conf.version!!}")
} }
override fun froglib(action: Action<VersionConfiguration>) { override fun froglib(action: Action<VersionConfiguration>) {