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
Showing only changes of commit b720533287 - Show all commits

View file

@ -186,6 +186,10 @@ abstract class PhytotelmaGradleExtensionImpl @Inject constructor(
clearGlobalCache()
}
}
project.afterEvaluate {
remapModDependencies()
}
}
@OptIn(ExperimentalPathApi::class)
@ -308,8 +312,6 @@ abstract class PhytotelmaGradleExtensionImpl @Inject constructor(
AccessWidener.apply(project, remappedJar)
}
}
remapModDependencies()
}
}
@ -319,7 +321,7 @@ abstract class PhytotelmaGradleExtensionImpl @Inject constructor(
if (conf.version == null) {
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>) {